Screen Offset

Hi Guys
I know this question may appear a little odd, but is there any
way to offset the screen, as i have spent many months making my game fit in
normal 800x660 and its only now i realize i must consider wide screens, so i
was wondering if there was any one stop shop fix to allow me to offset 0,0
on the screen to allow all my existing code to blit to say 300,0 when all
the rects are set to 0,0?

Trish,

I know that on my Intel Mac, when I run it with Windows, there are
options to either stretch or add black bars to resolutions that
aren’t the proper ratio (of which all but the native aren’t), so it
may not be an issue, provided you are changing the working monitor
resolution for your game.

If you’re just using whatever the screen throws at you and scaling
everything to fit the proper aspect ratio within your 800x600, then I
think you’re in for some work, as I don’t believe there’s anything
SDL can do to change all of your drawing operations to be a certain
position further in/out from where the default is…

But I’d say just make sure you’re changing screen resolution, and
don’t worry about it otherwise.

– ScottOn Sep 7, 2007, at 12:51 AM, Patricia Curtis wrote:

Hi Guys
I know this question may appear a little odd, but is
there any way to offset the screen, as i have spent many months
making my game fit in normal 800x660 and its only now i realize i
must consider wide screens, so i was wondering if there was any one
stop shop fix to allow me to offset 0,0 on the screen to allow all
my existing code to blit to say 300,0 when all the rects are set to
0,0?

Trish
,


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org