OS_ScreenMode brokenness
Rick Murray (539) 13861 posts |
Selecting a new style screen mode… REM Example for 16Mcol 640x480 DIM mode% 23 mode%!0 = 1 mode%!4 = 640 mode%!8 = 480 mode%!12 = 5 : REM Colour depth mode%!16 = -1: REM Frame rate, use first match mode%!20 = -1: REM End of additional list of options SYS "OS_ScreenMode", 0, mode% SYS "OS_ScreenMode", 1 TO , setmode% PRINT setmode%!16 The problem? The frame rate. When reading the screen mode back, the value that is read is the one used to select the mode (-1), and not the value that pertains to the mode actually selected (60, 75, etc etc). Surely this is a bug, as when reading information on the current screen mode, you’re likely to want to know the current frame rate rather than knowing it was chosen as “whatever, I don’t care”. |