Author |
Topic: BBC BASIC for SDL 2.0 v0.15a released (Read 643 times) |
|
Leo
New Member
member is offline


Posts: 10
|
 |
Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #3 on: Nov 10th, 2016, 11:13am » |
|
Hi Richard,
I downloaded BBCSDL20 to try on my Windows 7 machine and ran into a problem with SDLIDE. When I tried to change the edit font, the font selection box did not show facenames, it showed a listing of bits of directory names from my root directory.
The problem occurs because I installed to "c:\Program Files (x86)\BBCSDL". I think any directory with spaces in the name would also cause the problem. I verified it works Ok when installed to a directory without spaces in the name. Investigating.. in PROCsetfont, I believe the line... N% = FNdirscan(face$(), "dir " + @lib$ + "*.ttf", "*.ttf", "", "")
..needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces. I haven't (yet) tried this.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #4 on: Nov 10th, 2016, 1:04pm » |
|
on Nov 10th, 2016, 11:13am, Leo wrote:| ... needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces. |
|
Could well be. As you will appreciate, BBCSDL is primarily intended to be run in Linux and Mac OS, in which directory names containing spaces are uncommon. You could try changing the line you mention as follows:
Code: N% = FNdirscan(face$(), "dir """ + @lib$ + "*.ttf""", "*.ttf", "", "") Richard.
|
|
Logged
|
|
|
|
Leo
New Member
member is offline


Posts: 10
|
 |
Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #5 on: Nov 10th, 2016, 1:35pm » |
|
Yes, that fixes it.
|
|
Logged
|
|
|
|
|