notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random fixes (root path and mmap svp tcache)
[libpicofe.git]
/
gp2x
/
plat.c
diff --git
a/gp2x/plat.c
b/gp2x/plat.c
index
568d363
..
8b9e0ae
100644
(file)
--- a/
gp2x/plat.c
+++ b/
gp2x/plat.c
@@
-78,8
+78,12
@@
void plat_video_menu_enter(int is_rom_loaded)
}
else
{
}
else
{
+ char buff[256];
+
// should really only happen once, on startup..
// should really only happen once, on startup..
- readpng(g_screen_ptr, "skin/background.png", READPNG_BG);
+ emu_make_path(buff, "skin/background.png", sizeof(buff));
+ if (readpng(g_screen_ptr, buff, READPNG_BG) < 0)
+ memset(g_screen_ptr, 0, 320*240*2);
}
// copy to buffer2
}
// copy to buffer2