We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 795

Summary: PocketPC + GetCursorPos always return error 120 (ERROR_CALL_NOT_IMPLEMENTED)
Product: SDL Reporter: Andrey <afletdinov>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: x86   
OS: Windows (CE)/PocketPC   
Attachments: WinCE GetCursorPos fixed
fix getcursorpos with skip gapitransform
WinCE GetCursorPos fixed
GapiTransform fixed
result of attachment.

Description Andrey 2009-09-14 21:16:53 UTC
Created attachment 355 [details]
WinCE GetCursorPos fixed

I'm using iPAQ HP rx5919, with Windows Mobile 5.
And I also use mingw32ce 0.59.1 toolchain.
I fixed this, see attachment patch.
Comment 1 Andrey 2009-09-14 23:54:14 UTC
Created attachment 356 [details]
fix getcursorpos with skip gapitransform

I updated the patch.
Now it shows the correct position of the cursor.
I checked it on the iPAQ rx5915 and iPAQ hx2490b.
I tested it in landscape mode, 320x240.
Comment 2 Andrey 2009-09-18 23:17:57 UTC
Created attachment 365 [details]
WinCE GetCursorPos fixed
Comment 3 Andrey 2009-09-18 23:19:57 UTC
Created attachment 366 [details]
GapiTransform fixed

I make a small test, here's the result:

Screen orientation:                landscape      portrait       landscape      portrait
SDL_SetVideoMode:                  320x240        320x240        240x320        240x320

GAPI info:

display bpp:                       16             16             16             16
display width:                     320            240            320            240
display height:                    240            320            240            320
system display width:              240            240            240            240
system display height:             320            320            320            320
x pitch:                           2              640            2              640
y pitch:                           640            -2             640            -2
gapi flags:                        0xa0           0xa8           0xa0           0xa8
user orientation:                  0              3              0              0
system orientation:                3              0              3              0
gapi orientation:                  0              3              0              3
video memory:                      0x46400000     0x4640027e     0x46400000     0x4640027e
need update:                       1              1              1              1
hi-res fix:                        1 (?)          0              0              0
VGA is available on the device:    1              1              1              1
use raw framebuffer:               0              0              0              0
video surface bpp:                 16             16             16             16
video surface width:               320            320            240            240
video surface height:              240            240            320            320
mouse/arrows transformation angle: 0              3              0              0

use origin SDL result:
display rotate correct:            yes            yes            no             yes
mouse direction correct:           no             yes            no             yes

use pathed SDL result:
display rotate correct:            yes            yes            no             yes
mouse direction correct:           yes            yes            yes            yes
Comment 4 Andrey 2009-09-18 23:22:03 UTC
Created attachment 367 [details]
result of attachment.
Comment 5 Sam Lantinga 2009-09-21 02:59:01 UTC
Thanks, I put your patch in subversion.