11-21-2022, 02:08 AM
From the program shown here:
https://qb64phoenix.com/forum/showthread...32#pid2332
I changed stuff before the "SCREEN _NEWIMAGE()" statement, in this way:
The compiled program simply refuses to display anything but "freeglut" on the following terminal line and quits. Tried to print the value of "iii" first of all. However, hard-coding the desktop width and height worked.
If "_DESKTOPWIDTH" isn't ready then why doesn't it just return zero? Should I have tried it for the other function?
This should have been reported earlier, but it's irritating the user program doesn't display anything at all at the user's command. This must mean stuff belonging to the "freeglut" is included in initialization when a Linux executable is run.
https://qb64phoenix.com/forum/showthread...32#pid2332
I changed stuff before the "SCREEN _NEWIMAGE()" statement, in this way:
Code: (Select All)
dim as long w, h, iii
print "Starting..."
for iii = 1 to 10
w = _DesktopWidth: h = _DesktopHeight
if w > 0 then exit for
_delay 0.5
next
if not(w > 0) then print "Sorry it didn't work!" : end
hd2 = h / 2
The compiled program simply refuses to display anything but "freeglut" on the following terminal line and quits. Tried to print the value of "iii" first of all. However, hard-coding the desktop width and height worked.
If "_DESKTOPWIDTH" isn't ready then why doesn't it just return zero? Should I have tried it for the other function?
This should have been reported earlier, but it's irritating the user program doesn't display anything at all at the user's command. This must mean stuff belonging to the "freeglut" is included in initialization when a Linux executable is run.