annotate src/main/macos/exports/gendef.pl @ 4392:2b8c1aea633b SDL-1.2

Fixed bug #898 Jeremiah Morris 2009-12-09 16:07:17 PST No-op GlobalToLocal translations in fullscreen mode On my MacBook Pro running 10.6, I noticed a small upward bias on mouse movement in a fullscreen SDL application. The app uses WarpCursor and GetMouseState in a loop to measure relative movement. I tracked it down to NSWindow's convertBaseToScreen: routine, which added a 2-pixel offset on the Y coordinate instead of the expected (+0,+0) translation. In fullscreen mode, QZ_PrivateWarpCursor() does not translate the desired position through QZ_PrivateGlobalToLocal() before passing it to the Core Graphics system. However, QZ_GetMouseLocation() does call the reverse QZ_PrivateLocalToGlobal() even in fullscreen mode. This asymmetry caused problems each time the mouse was moved.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Dec 2009 15:31:37 +0000
parents da1ef6acde9e
children
rev   line source
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
1 #!/usr/bin/perl
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
2 #
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
3 # Program to take a set of header files and generate DLL export definitions
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
4
1317
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
5 # Special exports to ignore for this platform
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
6
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
7 while ( ($file = shift(@ARGV)) ) {
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
8 if ( ! defined(open(FILE, $file)) ) {
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
9 warn "Couldn't open $file: $!\n";
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
10 next;
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
11 }
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
12 $printed_header = 0;
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
13 $file =~ s,.*/,,;
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
14 while (<FILE>) {
930
02759105b989 Date: Fri, 20 Aug 2004 08:31:20 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 345
diff changeset
15 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
1317
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
16 if ( not $exclude{$1} ) {
4353
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
17 print "\t$1\r";
1317
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
18 }
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
19 }
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
20 }
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
21 close(FILE);
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
22 }
1317
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
23
6c7b69218276 Updated exports
Sam Lantinga <slouken@libsdl.org>
parents: 930
diff changeset
24 # Special exports to include for this platform
4353
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
25 print "\tSDL_putenv\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
26 print "\tSDL_getenv\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
27 print "\tSDL_qsort\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
28 print "\tSDL_revcpy\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
29 print "\tSDL_strlcpy\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
30 print "\tSDL_strlcat\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
31 print "\tSDL_strdup\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
32 print "\tSDL_strrev\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
33 print "\tSDL_strupr\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
34 print "\tSDL_strlwr\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
35 print "\tSDL_ltoa\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
36 print "\tSDL_ultoa\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
37 print "\tSDL_strcasecmp\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
38 print "\tSDL_strncasecmp\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
39 print "\tSDL_snprintf\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
40 print "\tSDL_vsnprintf\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
41 print "\tSDL_iconv\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
42 print "\tSDL_iconv_string\r";
da1ef6acde9e Use MacOS line endings for SDL.x
Sam Lantinga <slouken@libsdl.org>
parents: 1529
diff changeset
43 print "\tSDL_InitQuickDraw\r";