PocketMatrix forums

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

What does GX_begindraw really return?

Dear all,

According to MS's document about GX_begindraw, it returns a pointer to start of display memory. However, I find that it returns the address of top-left corner instead of the start of display memory in my ipaq 3950.

Therefore I wonder if it should return start of display memory or address of top-left corner. I also want to know if other non-ipaq devices return address of top-left corner or the real address of start of display memory.

Thank in advance.
angedelamort · 19 Feb 2003, 15:46 UTC
There a lot of devices, and all device have their own settings. That's why each developer needs to implement gapi.

But for your question, yes it return the top left corner. But in order to set it to the start of the memory, you have to use all the constants given by GAPI by the GXDisplayProperties struct and check if the display is landscape (kfLandscape if i remember).

adlm
Thanks a lot.

Since the documemt states that it returns the start address of display buffer, I believe that it would return the address of bottom-left corner if it is landscape.

I just wonder if other device with landscape display does return the address of top-left corner.
It always returns the address of the pixel with location 0,0. On PocketPCs that is the upper left corner of the display.