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 / 2D sprites displayed too large

Author
Message
Foz
16
Years of Service
User Offline
Joined: 18th Dec 2007
Location: California
Posted: 8th Jul 2009 08:33
I've got a few sprites, in both .png and .bmp formats, created in Paint Shop Pro that are displayed at about twice the size they should be. They're designed to fill the entire screen, so I made them 1280 x 800 pixels - my current screen resolution - using the regular, simple code:



(I've tried it with and without the texture flag '1' in the LoadImage...)


Foz, I am.
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 8th Jul 2009 11:03
Did you set the resolution of your game to 1280x800 as well?

Foz
16
Years of Service
User Offline
Joined: 18th Dec 2007
Location: California
Posted: 9th Jul 2009 00:39
yes I did...


Foz, I am.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Jul 2009 01:45
@Foz,
No, you didn't

You should use this:


Foz
16
Years of Service
User Offline
Joined: 18th Dec 2007
Location: California
Posted: 9th Jul 2009 20:29
There it is - I was using dbSetWindowSize() instead of dbSetDisplayMode()...


Foz, I am.

Login to post a reply

Server time is: 2024-10-01 06:07:08
Your offset time is: 2024-10-01 06:07:08