X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_omap.c;h=65478cb345bbf8cde3bd36617f1e11a6929893cc;hp=5939dcbdc75c69b8742099f0ec9721f6fd66cf23;hb=55b0eeea6028e00741e620d28ab3211c49b8515f;hpb=4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae diff --git a/frontend/plat_omap.c b/frontend/plat_omap.c index 5939dcbd..65478cb3 100644 --- a/frontend/plat_omap.c +++ b/frontend/plat_omap.c @@ -20,7 +20,7 @@ #include "plugin_lib.h" #include "pl_gun_ts.h" #include "omap.h" -#include "pandora.h" +#include "plat.h" static struct vout_fbdev *main_fb; @@ -29,7 +29,7 @@ int g_layer_w = 640, g_layer_h = 480; struct vout_fbdev *layer_fb; -static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h, int first_call) +static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h) { struct omapfb_plane_info pi = { 0, }; struct omapfb_mem_info mi = { 0, }; @@ -55,7 +55,7 @@ static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h, in perror("SETUP_PLANE"); } - if (first_call) { + if (mi.size < 640*512*3*3) { mi.size = 640*512*3*3; ret = ioctl(fd, OMAPFB_SETUP_MEM, &mi); if (ret != 0) { @@ -85,7 +85,7 @@ int omap_enable_layer(int enabled) pl_set_gun_rect(g_layer_x, g_layer_y, g_layer_w, g_layer_h); return omap_setup_layer_(vout_fbdev_get_fd(layer_fb), enabled, - g_layer_x, g_layer_y, g_layer_w, g_layer_h, 0); + g_layer_x, g_layer_y, g_layer_w, g_layer_h); } void plat_video_menu_enter(int is_rom_loaded) @@ -138,7 +138,7 @@ void plat_init(void) exit(1); } - ret = omap_setup_layer_(fd, 0, g_layer_x, g_layer_y, g_layer_w, g_layer_h, 1); + ret = omap_setup_layer_(fd, 0, g_layer_x, g_layer_y, g_layer_w, g_layer_h); close(fd); if (ret != 0) { fprintf(stderr, "failed to set up layer, exiting.\n"); @@ -174,7 +174,7 @@ void plat_init(void) g_menubg_ptr = temp_frame; // hmh - pandora_rescan_inputs(); + plat_rescan_inputs(); return;