SDL dont show anything

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Eskema
Posts: 6
Joined: Fri May 26, 2006 12:00 am

SDL dont show anything

Post by Eskema »

Hi all, i have a strange problem with SDL, im making a game, and all is perfect until now, i put some ints that i need:
int SpecialWeapon = 1;
int anything = 0;
and change the movement speed, now i recompile the source and wtf i only can see a black screen, but the game works because i listen the music ingame.
If i recompile the source for linux all is perfect and the screen shows the game properly.

why sometimes, when i do a few changes i only get a black screen, while in linux all work properly?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Probably just some subtle bug that causes problems on the PSP but not the PC.. maybe try running the Linux version under valgrind?
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

I recently encountered similar problems. adding some obscure code just resulted in me getting a black screen. It was fixed by removing -02 optimization flag from my makefile.
Might be worth a shot.
Eskema
Posts: 6
Joined: Fri May 26, 2006 12:00 am

Post by Eskema »

Kojima wrote:I recently encountered similar problems. adding some obscure code just resulted in me getting a black screen. It was fixed by removing -02 optimization flag from my makefile.
Might be worth a shot.
thanks ill try it, in fact when i compile for linux i dont have -O2 flag ;)
Post Reply