Message Board


Message Board > C/C++ > Scale game resolution in SDL

June 24, 2013, 22:48
DoctorN
Whiskered
91 posts
Hello, I would like to know if it is possible to scale game resolution in SDL. So while the game may be 320x240 or whatever resolution, you can upscale the window so it appears bigger. Is this possible? Thanks
____________
#
June 25, 2013, 10:00
Zomg
None
641 posts
Perhaps this could give some thought:
http://stackoverflow.com/quest … solution-in-sdl
I know nothing about it. I just Googled it. Hehe. :P
____________
#
June 25, 2013, 23:48
DoctorN
Whiskered
91 posts
I already saw that awhile ago, I was hoping there would be something better lol
____________
#
June 26, 2013, 19:03
Dennis
どこかにいる
2097 posts

320x240? The screen of a digital watch?
____________
Kwakkel
#
June 26, 2013, 19:30
Zomg
None
641 posts
Dennis, a friend of mine bought 3 LCD screens, 24" and each one of them has a resolution of 56x30.. I kid you not.
____________
#
April 9, 2014, 18:09
DoctorN
Whiskered
91 posts
Although old thread, I figured it out without having to use SDL_gfx, you use an undocumented feature called SDL_SoftStretch(). Keep in mind that the Red's and Blue's on it are inverted, so you have to create a buffer with the Red's and Blue's inverted (no other surface needs this), and use softstrech to blit the buffer to the screen.

[Edited on April 9, 2014 by DoctorN]
____________
#

Message Board > C/C++ > Scale game resolution in SDL

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!