I have a simple program, which works fine with QB64 SDL in Windows 10:
The sample.png is an 8-bit 320x200 image.
The code compiles with the latest QB64 without errors, but when I try to run the executable I'm getting the following runtime error:
Line: 3 (in main module)
Illegal function call
Continue?
The same thing happens when the first line of the program is
but when I change it to
it works and displays the image.
Problem is that many tutorials, examples and games I found online use SCREEN 13 and other 8-bit modes. How can I run them with the latest QB64? Many times simply changing to 32-bit mode does not help, because a program manipulates the color palette with _COPYPALETTE, or uses LOCATE to display text, which also seems not to work in 32-bit screen modes.