Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition 3.4.1 Released
#41
From the program shown here:

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.
Reply


Messages In This Thread
QB64 Phoenix Edition 3.4.1 Released - by SMcNeill - 11-16-2022, 04:13 PM
RE: QB64 Phoenix Edition 3.4.1 Released - by Fifi - 11-23-2022, 01:19 PM
RE: QB64 Phoenix Edition 3.4.1 Released - by mnrvovrfc - 11-21-2022, 02:08 AM



Users browsing this thread: 6 Guest(s)