Centering on screen - Possible?

Subforum for discussion and help with ScummVM's PocketPC/HandheldPC port

Moderator: ScummVM Team

Post Reply
StarFish
Posts: 10
Joined: Sat Aug 19, 2006 4:46 pm
Location: Austria
Contact:

Centering on screen - Possible?

Post by StarFish »

Hello,

I'm using PocketSCUMM on a hires WinCE4 device (800x480px).
Since the ScummVM maximum is (2x) 640x480 it's filling the whole height, but is aligned left on the screen - so there's a black gap of 160 px width and 480 px height on the right side of teh screen.

Is it possible to center the whole 640x480 area ScumMVM uses in the middle of the screen?

Thanks & best regards,
Andreas
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

I can't think of a way right now to quickly and easily do that in the code, but the request is noted.
StarFish
Posts: 10
Joined: Sat Aug 19, 2006 4:46 pm
Location: Austria
Contact:

Post by StarFish »

knakos wrote:I can't think of a way right now to quickly and easily do that in the code, but the request is noted.
Cool!
Thank you - as far as I know only the offset has to be put to ScreenWidth/2 - Resolution/2...

Best regards, Andreas
User avatar
knakos
ScummVM Porter
Posts: 423
Joined: Wed Nov 02, 2005 2:35 pm
Location: Athens, Greece

Post by knakos »

... easier said than done :P
StarFish
Posts: 10
Joined: Sat Aug 19, 2006 4:46 pm
Location: Austria
Contact:

Post by StarFish »

Any updates in this issue so far?
Best regards, Andreas
Post Reply