| View previous topic :: View next topic |
| Author |
Message |
Eskema
Joined: 26 May 2006 Posts: 6
|
Posted: Tue Jul 11, 2006 2:43 am Post subject: SDL dont show anything |
|
|
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? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Jul 11, 2006 3:18 am Post subject: |
|
|
| Probably just some subtle bug that causes problems on the PSP but not the PC.. maybe try running the Linux version under valgrind? |
|
| Back to top |
|
 |
Kojima
Joined: 26 Jun 2006 Posts: 275
|
Posted: Tue Jul 11, 2006 5:38 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Eskema
Joined: 26 May 2006 Posts: 6
|
Posted: Tue Jul 11, 2006 3:08 pm Post subject: |
|
|
| 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 ;) |
|
| Back to top |
|
 |
|