o compiles and still crashes

This commit is contained in:
David Voswinkel
2009-05-14 20:22:39 +02:00
parent a1763efe21
commit 764c0dd2c1
7 changed files with 359 additions and 120 deletions

View File

@@ -12,7 +12,7 @@ enable_gzip=false
c := $(compiler)
cpp := $(subst cc,++,$(compiler))
flags := -ggdb -O3 -fomit-frame-pointer -Ilib
flags := -ggdb3 -O3 -fomit-frame-pointer -Ilib
link :=

View File

@@ -1,3 +0,0 @@
@mingw32-make
::@mingw32-make enable_gzip=true enable_jma=true
@pause

View File

@@ -1 +0,0 @@
@mingw32-make clean

View File

@@ -102,14 +102,18 @@ public:
char env[512];
sprintf(env, "SDL_WINDOWID=%ld", settings.handle);
putenv(env);
printf("init sdl\n");
SDL_InitSubSystem(SDL_INIT_VIDEO);
//screen depth must be 32, as 24bpp with a 32-bit X window visual produces no output.
screen = SDL_SetVideoMode(2560, 1600, 32, SDL_HWSURFACE);
printf("init screen\n");
screen = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE);
//makescreen = SDL_SetVideoMode(2560, 1600, 32, SDL_HWSURFACE);
//buffer depth must be 32, as this is the input format used by all ruby drivers.
printf("init surface\n");
buffer = SDL_CreateRGBSurface(SDL_HWSURFACE,
1024, 1024, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
);
printf("init done\n");
return true;
}

View File

@@ -1,7 +1,7 @@
/****************************************************************************
** Resource object code
**
** Created: Tue May 12 22:50:12 2009
** Created: Wed May 13 23:30:06 2009
** by: The Resource Compiler for Qt version 4.4.3
**
** WARNING! All changes made in this file will be lost!