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 / How can I stop a sprite shrinking?

Author
Message
etftw
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location:
Posted: 8th Feb 2008 16:19
Hello,

Well all I am trying to do at the moment is load a static sprite up but for some reason it constantly resizes itself so it is smaller than the program window, this image will show what I mean: http://img155.imageshack.us/img155/5444/problemgf5.jpg

That sprite should be the full size of that window but for some reason constantly resizes itself depending on the size of the window.

Thanks in advance for any replys
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 9th Feb 2008 15:29
you need to post code (I THINK) in order to be sure you get a decent answer - otherwise you'll only get guesses.

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Feb 2008 18:38
@etftw
Use 'dbSetDisplayMode' and set the width and height to the width and height of the sprite. As long as the sprite is the same size as the display area, it will fill the window. When you resize a window, instead of resizing the display area, it just stretches it to fit.

Login to post a reply

Server time is: 2024-09-29 11:20:04
Your offset time is: 2024-09-29 11:20:04