🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Setting Video Modes

Started by
5 comments, last by PyroFragger 24 years, 9 months ago
Gee, thanks for everyone's support. It really helped me. I cant wait till i have another question, I'll get the same quality answer.
Advertisement
Try the EnumDisplaySettings and ChangeDisplaySettings Win32 functions. Basically you just enumerate the formats until you find one you like, then set it. You'll have to remember to set it back when you're done.


Hey, thanks for your answer. I should have said in my original post that i was working in C, not C++. Is there any way to do it in C.
That is done in C. Win32 is basically C code, MFC is C++. But the Win32 API is C.
Daemin(Dominik Grabiec)

Oh, ok, I'll look into that. I still have no idea how to use it, i did locate the function definition in the winuser.h file though.

I'm wondering if there is a better way to set the video mode than VESA, as I am working in windows. Also, I hate DirectX so please dont reply with it in your answer. Thanks alot.
here's microsoft's documentation for those functions:

EnumDisplaySettings: http://msdn.microsoft.com/library/sdkdoc/gdi/devcons_84oj.htm

ChangeDisplaySettings: http://msdn.microsoft.com/library/sdkdoc/gdi/devcons_7gz7.htm

My web site: http://members.xoom.com/mutex0

[This message has been edited by mutex (edited September 07, 1999).]


This topic is closed to new replies.

Advertisement