PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PocketHal + VGA

Hi pockethal programmers!

I sent one of my pockethal powered games to a friend who just bought a Dell x51v.

My friend reported me that the game start full screen and correctly handles stylus input..so it's full playable.

I think that pockethal by default does some strecthing on display..forcing a 240x340 display also on VGA devices..is this right?

What should i do if, in my future games, i need to use the whole 480x640 screen?

Thanks for your support!

p.s: i use last registered pockethal (0.7.7 if i remember well)
If you don't set the hi-res aware flag in your resources, it's treated as a legacy QVGA app.

If you add the hi-res aware flag, it should give you the whole screen to play with. (I use the word "should" because I haven't done it myself yet. ;))

For more info on the hi-res stuff, check out: http://msdn.microsoft.com/library/defau ... reness.asp
Scroll down to the bottom for the "Legacy Support" section, right above the "GAPI Legacy Support" section.

-John
Thanks presto!

Does this mean i can't use same .exe version for both vga and qvga??

I mean, if i set hires flag, VGA devices should use the whole hires area? (GetWidth()=480, GetHeight()=640)?

Well...actually i don't own a wm5 vga device, i suppose i have to buy a new one just for debugging purpose :(

Yeeeeah, just now i spent about ten times more than i gain with my games, that's cool :D

Maybe i should search new hobby? 8O

p.s: no way! 8)
I'm not sure what it would do using the hi-res aware flag on a QVGA device... Typically, you'll have different art assets for the different resolutions, so if you want your app to work for both, you probably won't want the user installing a bunch of unused image files. I think that's why there are usually VGA and QVGA versions.

Hopefully someone with more experience than I on this subject will provide some valuable input. :)

-John
My one game (Space Treker) is 240 x 320 & I have separate builds for the WM5 devices like the X51. It's not much work to have 2 builds.
If you put the hires aware flag in your exe and run it on a QVGA screen, then nothing will happen. I don't believe your screen will morph into a VGA one.

If you have the hires aware flag, you will get 240x320 on QVGA and 480x640 on VGA.

If you don't have the flag, you will get 240x320 on QVGA and VGA devices.