Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / When the window resizes so do the sprites!

Author
Message
LoopStan
15
Years of Service
User Offline
Joined: 8th Oct 2009
Location: Herriman Utah
Posted: 9th Oct 2009 01:11
I can't figure this out, and I have done some searching, but when I change the size of the window in game, or in the code my window and sprites resize. Is there any way to fix this? My game window and sprites from my old game (in another engine that I don't use anymore) are 450x550.

http://north-see.com
Fuel Your Gaming Needs
(COMING SOON!)
Zaerdna
15
Years of Service
User Offline
Joined: 25th Oct 2009
Location:
Posted: 25th Oct 2009 13:36
That's because resizing the window doesn't change your resolution, only the size of the window.
But still the resolution has to fit the window, so it stretches the whole screen.

Here's a code that will fix that.



-Zaerdna

Login to post a reply

Server time is: 2024-11-20 13:20:55
Your offset time is: 2024-11-20 13:20:55