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 / Sprites are stretched/shrunk

Author
Message
SteGriff
16
Years of Service
User Offline
Joined: 22nd Jun 2008
Location:
Posted: 22nd Jun 2008 18:37
Hi all.
I put sprites into my project using dbLoadImage and dbSprite, but when they appear at runtime, they are stretched or shrunk revealing horrible flaws in the bitmap.
I have absolutely no idea why this happens.

My project has all the initial declarations from the 2D Game template, could it be that I need to set a screen mode, or something like that?

Thanks
Ste

http://www.stegriff.co.uk
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 22nd Jun 2008 19:10
Post the code any you may illicit a response

System
MacBook Pro
Windows XP Home on Boot Camp
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 22nd Jun 2008 23:31
dbLoadImage is overlaoded to include a flag that controls that phenomenon. You need to use the overloaded function with a value of 1 in the flag parameter, :

dbLoadImage(filename, imagenum, 1);

Login to post a reply

Server time is: 2024-11-20 15:29:35
Your offset time is: 2024-11-20 15:29:35