Qbasicnews.com

Full Version: Ok..Windows ScreenRes goes fullscreen but anything else...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Doesn't. Is they any way around this? What i mean is if you do this:

Code:
DIM ScrWidth as unsigned integer
DIM ScrHeight as unsigned integer

#if defined(__FB_WIN32__)
#include "windows.bi"
ScrWidth = GetSystemMetrics(SM_CXSCREEN)
ScrHeight = GetSystemMetrics(SM_CYSCREEN)
#else
ScrWidth=500
ScrHeight=600
#endif

Screenres ScrWidth,ScrHeight,32,,1
SLEEP

if you are on windows you get a full screen view...but not on anything else.
Fullscreen resolutions work only if your video card supports them.
500x600 is not suported in any gfx card I know of.
Try ScrWidth=640, ScrHeight=480, that's standard.
you can use screenlist to get available modes,
in dos they should all go fullscreen

this is from the wiki

DIM AS INTEGER mode, w, h
'' Find which 8bit resolutions are supported
mode = SCREENLIST(8)
WHILE (mode)
w = HIWORD(mode)
h = LOWORD(mode)
PRINT STR$(w) + "x" + STR$(h)
mode = SCREENLIST
WEND

sleep