SDL2 for the Nintendo Wii U (build with "cmake [SDL source path] -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu")
Go to file
Sam Lantinga 57fad12ba2 Fixed bug 1846 - _allmul implementation in SDL_stdlib.c doesn't clean up the stack
Colin Barrett

I see this manifest itself (VS2012 x86) as:

"Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention."

in the first call to SDL_GetTicks in my application. The disassembly at the problem line is:

        hires_now.QuadPart *= 1000;
00AD0792  push        0
00AD0794  push        3E8h
00AD0799  mov         eax,dword ptr [ebp-10h]
00AD079C  push        eax
00AD079D  mov         ecx,dword ptr [hires_now]
00AD07A0  push        ecx
00AD07A1  call        _allmul (0AE7D40h)
00AD07A6  mov         dword ptr [hires_now],eax
00AD07A9  mov         dword ptr [ebp-10h],edx

Apparently _allmul should be popping the stack but isn't (other similar functions in SDL_stdlib.c - _alldiv and whatnot - DO pop the stack).

A 'ret 10h' at the end of _allmul appears to do the trick
2013-05-16 00:43:22 -07:00
acinclude We have to fix the DLL name convention on Windows every time... 2012-10-19 21:43:41 -07:00
android-project There's no need to keep these private. If you extend SDLActivity, you should know what you're doing. 2013-05-15 23:18:29 -07:00
build-scripts Fix bug 1574 - updaterev.sh fails when path contains spaces 2013-03-10 16:28:20 -07:00
cmake Fixes bug #1709, pthread tests fixes for CMake (Thanks Scott Percival!) 2013-04-19 13:25:39 -03:00
debian We don't need no stinking pre-release version number! 2013-02-17 23:39:25 -08:00
include Fixed Doxygen warnings. 2013-05-15 22:00:28 +02:00
src Fixed bug 1846 - _allmul implementation in SDL_stdlib.c doesn't clean up the stack 2013-05-16 00:43:22 -07:00
test Changed spelling for consistency. 2013-05-15 22:10:06 +02:00
VisualC Disable C++ exceptions, use debug format that includes debug information in the static libraries, and standardize on Program Database / Program Database with edit and continue for the DLL debug format. 2013-05-06 13:39:17 -07:00
Xcode Add new controller mappings for Windows. 2013-04-02 18:09:30 -07:00
Xcode-iOS Removed Nintendo DS support since nobody has volunteered to maintain it for over a year. 2013-03-17 09:44:58 -07:00
.DISABLED-hgeol Disable .hgeol for now...it doesn't work well at the moment. 2011-01-20 11:51:23 -05:00
.hgignore Added new tests to the .hgignore file 2013-03-03 22:06:27 -08:00
.hgtags
.indent.pro
aclocal.m4 We have to fix the DLL name convention on Windows every time... 2012-10-19 21:43:41 -07:00
Android.mk Fixed bug 1606 - SDL does not implement SDL_GetPowerInfo() for Android. 2012-09-23 01:37:44 -07:00
autogen.sh SDL_revision.h is always updated as part of the build process now. 2011-02-28 09:06:15 -08:00
BUGS
CMakeLists.txt Replaced Gnome screensaver hack with D-Bus messages to org.gnome.ScreenSaver. 2012-12-28 03:46:55 -05:00
configure default clock_gettime use to enabled as there is now proper fallback code for systems that don't have it. 2013-05-02 21:23:38 -04:00
configure.in default clock_gettime use to enabled as there is now proper fallback code for systems that don't have it. 2013-05-02 21:23:38 -04:00
COPYING Happy New Year! 2013-02-15 08:47:44 -08:00
CREDITS Removed Nintendo DS support since nobody has volunteered to maintain it for over a year. 2013-03-17 09:44:58 -07:00
INSTALL Updated documentation with info about the wiki 2013-02-14 15:56:33 -08:00
Makefile.in The input API was never implemented, so removing it before release. 2013-02-19 05:39:19 -08:00
Makefile.minimal Made it possible to build SDL from a fresh checkout without any additional steps. 2011-02-16 02:37:09 -08:00
Makefile.pandora Removed /dev/dsp DMA audio target. 2011-07-24 03:37:13 -07:00
Makefile.psp Add PSP support 2013-03-17 20:07:02 +08:00
Makefile.wiz Removed /dev/dsp DMA audio target. 2011-07-24 03:37:13 -07:00
README Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README-SDL.txt Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.android Updated README.android. 2013-05-12 12:59:17 +02:00
README.cmake Adds CMake build system by Marcus Von Appen (bug #1597) 2012-11-16 09:23:18 -03:00
README.DirectFB Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.gesture Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.HG Whitespace change in a README. 2011-01-22 03:57:27 -05:00
README.iOS Synchronized the on-screen keyboard state with whether we are accepting text input. 2012-11-04 21:53:28 -08:00
README.MacOSX Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.pandora Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.Platforms The Haiku port is being actively maintained by Axel Dörfler 2013-03-26 22:26:07 -07:00
README.Porting Fixed bug 1748 - Patch for errors and mistakes in SDL 2 README files. 2013-03-10 09:03:38 -07:00
README.psp Add PSP support 2013-03-17 20:07:02 +08:00
README.touch Corrected names in README file. 2013-04-29 23:41:49 +02:00
README.WinCE Removed Windows CE support from SDL 2.0. 2012-09-15 10:59:39 -04:00
sdl2-config.in Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
sdl2.m4 Updated macro comment 2013-02-15 15:22:12 -08:00
sdl2.pc.in Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2 2012-01-22 17:21:00 -05:00
SDL2.spec.in Successfully built an SDL 2.0 RPM 2012-01-22 23:36:59 -05:00
TODO Test commit. Adding space to TODO.. 2012-10-11 09:44:59 -07:00
VisualC.html
WhatsNew Clearing the API changes for the 1.3.0 release 2011-01-19 22:20:44 -08:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

The current version supports Windows, Mac OS X, Linux, FreeBSD,
NetBSD, OpenBSD, BSD/OS, Solaris, iOS, and Android. The code contains
support for other operating systems but those are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under the zlib license, which can be found
in the file "COPYING".

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation and FAQs are available online at:
	http://wiki.libsdl.org/

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)