#include <stdint.h>
#include <unistd.h>
#include <hildon/hildon.h>
-#include "plugin_lib.h"
+#include "plugin_lib.h"
#include "main.h"
+#include "plat.h"
#include "../libpcsxcore/psemu_plugin_defs.h"
-#include "common/readpng.h"
+#include "libpicofe/readpng.h"
#include "maemo_common.h"
#define X_RES 800
#define D_WIDTH 640
#define D_HEIGHT 480
-int g_layer_x = (X_RES - D_WIDTH) / 2;
-int g_layer_y = (Y_RES - D_HEIGHT) / 2;
-int g_layer_w = D_WIDTH, g_layer_h = D_HEIGHT;
-
static GdkImage *image;
static HildonAnimationActor *actor;
static GtkWidget *window, *drawing;
gtk_widget_show_all (GTK_WIDGET (actor));
gtk_widget_show_all (GTK_WIDGET (window));
-}
-void menu_loop(void)
-{
+ g_layer_x = (X_RES - D_WIDTH) / 2;
+ g_layer_y = (Y_RES - D_HEIGHT) / 2;
+ g_layer_w = D_WIDTH, g_layer_h = D_HEIGHT;
+
+ pl_rearmed_cbs.only_16bpp = 1;
}
-void *hildon_set_mode(int w, int h)
+void *plat_gvideo_set_mode(int *w_, int *h_, int *bpp_)
{
+ int w = *w_, h = *h_;
+
if (w <= 0 || h <= 0)
return pl_vout_buf;
return pl_vout_buf;
}
-void *hildon_flip(void)
+void *plat_gvideo_flip(void)
{
gtk_widget_queue_draw (drawing);
return pl_vout_buf;
}
-int omap_enable_layer(int enabled)
+void plat_gvideo_open(int is_pal)
{
- return 0;
}
-void menu_notify_mode_change(int w, int h, int bpp)
+void plat_gvideo_close(void)
{
}
return NULL;
}
-void plat_step_volume(int is_up)
+void plat_trigger_vibrate(int is_strong)
{
}
-void plat_trigger_vibrate(void)
+void menu_notify_mode_change(int w, int h, int bpp)
{
}