Thread: [Fheroes2-devel] Location of drawing code
Status: Beta
Brought to you by:
afletdinov
From: Ben C. <ben...@op...> - 2009-06-10 06:44:13
|
Hi I want to scale the sdl surface down to 320*240 (I know this has come up on the forums and may already be done) and I was wondering where the drawing code was located so I can scale it before it draws to the screen. Thanks, Ben. |
From: Afletdinov A. <afl...@dc...> - 2009-06-10 09:06:27
Attachments:
pda.diff
|
> Hi I want to scale the sdl surface down to 320*240 (I know this has come up > on the forums and may already be done) and I was wondering where the > drawing code was located so I can scale it before it draws to the screen. > > Thanks, > Ben. > Hi! Scale the surface it is easy. The difficulty is that in some places, the code uses the static coordinates for 640x480 screen size. These coordinates must be transformed into dynamic, in accordance with the scale (320x240 or other small..). Approximately that that you want look in an attachment. |