pandora: fix readme and pxml version
[picodrive.git] / platform / gp2x / plat.c
index 4d35cbd..b7096b7 100644 (file)
@@ -16,7 +16,7 @@
 #include "warm.h"
 #include "plat.h"
 
-#include <pico/pico.h>
+#include <pico/pico_int.h>
 
 /* GP2X local */
 int gp2x_current_bpp;
@@ -147,6 +147,11 @@ void gp2x_make_fb_bufferable(int yes)
 }
 
 /* common */
+void plat_video_menu_update(void)
+{
+       // surface is always the screen
+}
+
 void plat_video_menu_enter(int is_rom_loaded)
 {
        if (gp2x_current_bpp != 16 || gp2x_dev_id == GP2X_DEV_WIZ) {
@@ -179,6 +184,30 @@ void plat_video_menu_leave(void)
 {
 }
 
+void plat_show_cursor(int on)
+{
+}
+
+int plat_grab_cursor(int on)
+{
+       return 0;
+}
+
+int plat_has_wm(void)
+{
+       return 0;
+}
+
+void *plat_mem_get_for_drc(size_t size)
+{
+       return NULL;
+}
+
+int plat_parse_arg(int argc, char *argv[], int *x)
+{
+       return 1;
+}
+
 void plat_early_init(void)
 {
        // just use gettimeofday until plat_init()
@@ -203,6 +232,7 @@ void plat_init(void)
 
        g_menuscreen_w = 320;
        g_menuscreen_h = 240;
+       g_menuscreen_pp = g_menuscreen_w;
        gp2x_memset_all_buffers(0, 0, 320*240*2);
 
        gp2x_make_fb_bufferable(1);