Hi Guys
I don't know if this is related or not, but I'm currently trying to upgrade an old project that is also displaying weird graphics issues.
I commonly use a Boolean variable to set whether I'm in DEBUG or RELEASE mode as there isn't a working inbuilt variable to represent these modes
in DEBUG mode I set the application to a window a sixth the size of my desktop resolution with a Title bar that can easily be shutdown or moved out of the way.
in RELEASE mode the application hopefully runs in full screen.
DEBUG also conveniently displays and populates a log file with progress messages (handy to determine how far the application progressed before crashing!)
The weirdness is in DEBUG the text in the window is blurred and none of the 3D objects were visible?
After several attempts I think I found the solution...
the code for each mode although almost identical, after rearranging the order in which the DBP commands were ordered appears to have fixed the issue! although I'm not entirely sure why?
WIDTH = DESKTOP WIDTH()
HEIGHT = DESKTOP HEIGHT()
LEFT = 0
TOP = 0
IF ISDEBUG
SCL# = 0.6
LEFT = (WIDTH - (WIDTH * SCL#)) * 0.5
TOP = (HEIGHT - (HEIGHT * SCL#)) * 0.3
WIDTH = (WIDTH * SCL#)
HEIGHT = (HEIGHT * SCL#)
SET WINDOW ON
SET WINDOW LAYOUT 0, 1, 1
SET WINDOW TITLE "Application (DEBUG)"
ELSE
SET WINDOW OFF
SET WINDOW ON
SET WINDOW LAYOUT 0, 1, 1
SET WINDOW TITLE "Application (RELEASE)"
ENDIF
SET DISPLAY MODE WIDTH, HEIGHT, 32, FALSE, TRUE, FALSE
SET WINDOW SIZE WIDTH, HEIGHT
SET WINDOW POSITION LEFT, TOP
WINDOW TO FRONT
SHOW WINDOW
Hope you find a solution.