Log in

View Full Version : Fullscreen to windowed mode and change resolutions


highfly
February 16th, 2004, 14:58
many games doesn't have the option for windowed mode .how to change these settings and i got a old dx7 game which only 640x480 resolution how to change?

i also did some changes in dwstyle in createwindowEx api but


thanks

disavowed
February 16th, 2004, 20:27
it's probably not what you had in mind, but you could use a vm like vmware

dELTA
February 16th, 2004, 20:29
A good (although not fully supported by detailed knowledge of DirectX) guess would be that this would be very hard, since there are most likely a bunch of fundamental differences when drawing to a window and drawing to full screen. But someone else maybe knows better?

AndreaGeddon
February 17th, 2004, 07:16
if i am not wrong the resolution change can be done via user32 api, try to see if the program uses ChangeDisplaySettings and AdjustWindowRect, you can modify their parameters to see if you can change resolution handling
Bye!
AndreaGeddon

dELTA
February 17th, 2004, 22:24
But isn't this first once the program is in windowed mode? This one was in full screen DirectX mode if I'm not mistaken?

AndreaGeddon
February 18th, 2004, 08:10
oops maybe i misunderstood the question! If you have a full screen game running in 640*480, and for example you want to run it so that monitor resolution is 1024*768 and the game window is 640*480 windowed mode, then i think you can use those apis. The fact that the window is in directx should not be a problem, afteral a window is a window! I tried this in opengl and it works, that is, i can toggle windowed or full screen mode, i think this *should* work also on directx. In particular you can use ChangeDisplaySettings(NULL, NULL) to go back to desktop settings when in fullscreen mode.
Hope i did not misunderstood the prolblem!
Bye!
AndreaGeddon

highfly
February 18th, 2004, 14:51
oops,i asked two diff questions,

1,how to change a game's screen mode,the windowed mode,whatever may be the resolution

2,i got a old dx7 game which has only 640x480 resolution mode,how to change to higher modes


i messed some dwstyle of createwindowEx api to enable the title bar and frame but its again going to full-screen

evlncrn8
February 18th, 2004, 16:26
Quote:
[Originally Posted by highfly]oops,i asked two diff questions,

1,how to change a game's screen mode,the windowed mode,whatever may be the resolution



if the game uses full screen mode, it probably is using exclusive mode too, so changing it to windowed mode simply mightnt work, as you'll have at least 3 or 4 more procs to change during the direct x initialisation part, thats if it even works

Quote:
[Originally Posted by highfly]
2,i got a old dx7 game which has only 640x480 resolution mode,how to change to higher modes

i messed some dwstyle of createwindowEx api to enable the title bar and frame but its again going to full-screen


if the games coded for 640x480, chances are it wont 'plot' higher so you might make the window bigger but you'll still only see a 640x480 rectangle