Sign in to follow this  

MS Smartphone

This topic is 4204 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, does anybody have experience with graphics stuff on MS Smartphone? My question is, are there different framebuffer xpitch, ypitch values on different devices, or can I assue that xpitch is 2 and ypitch is xpitch times the width? Also, can I assume that there is some sort of raw framebuffer access on (almost) all devices? Either GAPI or GDI ExtEscape.

Share this post


Link to post
Share on other sites
I assume yes. If there's GAPI or direct framebuffer access, it's all right. But if I had to blit every single pixel using GDI, it rather would be a slideshow...


Share this post


Link to post
Share on other sites
GAPI can give you raw access to the primary display surface. So can DirectDraw on Windows Mobile 5.0 devices. GAPI is a deprecated API and apps should be written to use DDraw going forward.

You can get decent performance from GDI if you create an offscreen DC and DIB section, then do a 1:1 blit from the offscreen DC to the display. Reading/writing to the DIB section will be as fast or faster than reading/writing to the display using GAPI/DDraw. It probably won't be as fast as using DDraw or GAPI to get your bits on the screen, but it has the advantage that it you'll only need one code path to work on all previous and future Windows Mobile devices.

Share this post


Link to post
Share on other sites
Also on the GDI blit vs. GAPI, on most VGA WM2003 devices, GDI is faster than GAPI.

So not only is it good for moving forward to WM5, it works well with QVGA and VGA devices. There are a few drawbacks to just using GDI for fullscreen applications, mainly that there are so many ways to get minimized or hidden by other windows. If you can live with that, GDI is great.

Share this post


Link to post
Share on other sites

This topic is 4204 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this