# \[Sdl\] gapi fixes

**URL:** <https://discourse.libsdl.org/t/sdl-gapi-fixes/15840>\
**Category:** SDL Development\
**Created:** [December 3, 2008, 11:46am UTC](https://discourse.libsdl.org/t/sdl-gapi-fixes/15840 "2008-12-03T11:46:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Klug](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/stefan_klug/32/792_2.png) [@Stefan\_Klug](https://discourse.libsdl.org/u/Stefan_Klug)\
**Post date:** [December 3, 2008, 11:46am UTC](https://discourse.libsdl.org/t/sdl-gapi-fixes/15840/1 "2008-12-03T11:46:45Z")

</div>

Hi,

I’m using SDL 1.2 under the ming32ce toolchain and had some problems  
getting GAPI to work (Not getting remote gdb to work properly didn’t  
make things easier 😉

I’ve attached 2 patches against HEAD of the SDL-1.2 branch with some  
fixes to this eMail:  
keyboard.patch  
WinCe doesn’t provide getenv, but SDL already manages this so I replaced  
the native getenv by SDL\_getenv

gapi.patch  
fixed a typo in the header. In the source file I’m a bit puzzled how  
this worked for others. SDL would have called WIN\_Activate which is a  
dangling pointer in case of gapi video… I fixed it to my best  
knowledge. I would be happy if someone knowing more SDL internals could  
review this.

I’ve still got a local modification to [configure.in](http://configure.in). But here I’d like  
to have some feedback about the ‘proper’ way.  
The Problem is that my toolchain btw. the --host property given to  
configure is ‘arm-wince-mingw32ce’ which matches _-_-mingw32\*) leading  
to a win32 configure instead of a wince configure.  
The next problem is that the cegcc mingw32ce toolchain has now  
officially changed the host part from  
’arm-wince-mingw32ce’ to ‘arm-mingw32ce’. This also went upstream to  
autoconf and gdb so we can expect the name to be definitive.  
My propsal for [configure.in](http://configure.in) would be to move the _-wince_) block before  
_-_-cygwin\* | _-_-mingw32\*) and let it match  
_-wince_ | \*-mingw32ce)  
or even  
_-wince_ | \*-mingw32ce | \*-cegcc)  
but I’m not sure about the latter.  
Would be nice if some autoconf guru could comment on this.

One last question. In the current SVN trunk of SDL\_gapivideo.c the last  
commit seems to be accidentally. Could this be reverted for easy  
backporting of the 1.2 changes?

Kind regards  
Stefan Klug

-------------- next part --------------  
A non-text attachment was scrubbed…  
Name: keyboard.patch  
Type: text/x-patch  
Size: 452 bytes  
Desc: not available  
URL: [http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081203/d5b16132/attachment.bin](http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081203/d5b16132/attachment.bin)  
-------------- next part --------------  
A non-text attachment was scrubbed…  
Name: gapi.patch  
Type: text/x-patch  
Size: 1585 bytes  
Desc: not available  
URL: [http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081203/d5b16132/attachment-0001.bin](http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081203/d5b16132/attachment-0001.bin)
