aboutsummaryrefslogtreecommitdiff
path: root/maemo
diff options
context:
space:
mode:
authornotaz2012-04-22 01:56:22 +0300
committernotaz2012-04-29 19:32:08 +0300
commit6469a8c407ff23af8b7a6218f759b368eec7c339 (patch)
tree3e5c8e2cd08f3f4dc059b5248879d8a37ff51db0 /maemo
parent1f219c7b8a6f2b7a70f595ccdfe419ea034c9411 (diff)
downloadpcsx_rearmed-6469a8c407ff23af8b7a6218f759b368eec7c339.tar.gz
pcsx_rearmed-6469a8c407ff23af8b7a6218f759b368eec7c339.tar.bz2
pcsx_rearmed-6469a8c407ff23af8b7a6218f759b368eec7c339.zip
frontend: clean up some hacks
Diffstat (limited to 'maemo')
-rw-r--r--maemo/hildon.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/maemo/hildon.c b/maemo/hildon.c
index 08949ff..8948c3b 100644
--- a/maemo/hildon.c
+++ b/maemo/hildon.c
@@ -7,6 +7,7 @@
#include "plugin_lib.h"
#include "main.h"
+#include "plat.h"
#include "../libpcsxcore/psemu_plugin_defs.h"
#include "common/readpng.h"
#include "maemo_common.h"
@@ -16,10 +17,6 @@
#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;
@@ -181,14 +178,20 @@ void maemo_init(int *argc, char ***argv)
gtk_widget_show_all (GTK_WIDGET (actor));
gtk_widget_show_all (GTK_WIDGET (window));
+
+ 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;
}
void menu_loop(void)
{
}
-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;
@@ -214,7 +217,7 @@ void *hildon_set_mode(int w, int h)
return pl_vout_buf;
}
-void *hildon_flip(void)
+void *plat_gvideo_flip(void)
{
gtk_widget_queue_draw (drawing);
@@ -244,12 +247,11 @@ void *hildon_flip(void)
return pl_vout_buf;
}
-int omap_enable_layer(int enabled)
+void plat_gvideo_open(void)
{
- return 0;
}
-void menu_notify_mode_change(int w, int h, int bpp)
+void plat_gvideo_close(void)
{
}