add a hack for Decap Attack
[picodrive.git] / platform / gp2x / plat.c
index e7f8f73..4fcf76f 100644 (file)
@@ -95,8 +95,8 @@ static const struct menu_keymap key_pbtn_map[] =
        { KEY_RIGHTBRACE, PBTN_R },
 };
 
-static const struct in_evdev_pdata gp2x_evdev_pdata = {
-       .defbinds = in_gp2x_defbinds,
+static const struct in_pdata gp2x_evdev_pdata = {
+       .defbinds = in_evdev_defbinds,
        .key_map = key_pbtn_map,
        .kmap_size = sizeof(key_pbtn_map) / sizeof(key_pbtn_map[0]),
 };
@@ -179,6 +179,11 @@ void plat_video_menu_leave(void)
 {
 }
 
+void *plat_mem_get_for_drc(size_t size)
+{
+       return NULL;
+}
+
 void plat_early_init(void)
 {
        // just use gettimeofday until plat_init()
@@ -203,6 +208,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);