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 - PocketPC + GetCursorPos always return error 120 (ERROR_CALL_NOT_IMPLEMENTED)
Summary: PocketPC + GetCursorPos always return error 120 (ERROR_CALL_NOT_IMPLEMENTED)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: x86 Windows (CE)/PocketPC
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 21:16 UTC by Andrey
Modified: 2009-09-21 02:59 UTC (History)
0 users

See Also:


Attachments
WinCE GetCursorPos fixed (1009 bytes, patch)
2009-09-14 21:16 UTC, Andrey
Details | Diff
fix getcursorpos with skip gapitransform (1.36 KB, patch)
2009-09-14 23:54 UTC, Andrey
Details | Diff
WinCE GetCursorPos fixed (844 bytes, patch)
2009-09-18 23:17 UTC, Andrey
Details | Diff
GapiTransform fixed (4.01 KB, patch)
2009-09-18 23:19 UTC, Andrey
Details | Diff
result of attachment. (2.19 KB, text/plain)
2009-09-18 23:22 UTC, Andrey
Details

Note You need to log in before you can comment on or make changes to this bug.
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.