rendered paste bodydiff -ur toka-1.2/configure toka-1.2-jason/configure
--- toka-1.2/configure 2007-10-16 22:45:48.000000000 -0400
+++ toka-1.2-jason/configure 2007-11-02 16:57:23.000000000 -0400
@@ -461,7 +461,7 @@
echo >>Makefile " " cd texteditor \&\& $\(CC\) $\(CFLAGS\) textedit.c -o ../textedit.so
fi
if [ "$lib_sdl" = "enabled" ]; then
- echo >>Makefile " " $\(CC\) $\(CFLAGS\) sdl.c -o sdl.so
+ echo >>Makefile " " $\(CC\) $\(CFLAGS\) sdl.c -lSDL -lm -o sdl.so
fi
cd ../..
ls
diff -ur toka-1.2/library/C/sdl.c toka-1.2-jason/library/C/sdl.c
--- toka-1.2/library/C/sdl.c 2007-10-11 01:49:58.000000000 -0400
+++ toka-1.2-jason/library/C/sdl.c 2007-11-02 16:53:50.000000000 -0400
@@ -35,6 +35,11 @@
void sdl_setup(long req_width, long req_height)
{
+ if (req_width == 0 || req_height == 0)
+ {
+ SDL_Init(0);
+ return;
+ }
height = req_height;
width = req_width;
SDL_Init(SDL_INIT_VIDEO);