aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2012-01-21 23:22:30 +0200
committernotaz2012-01-21 23:22:30 +0200
commitbb88ec28db0535102b70a7c18ef095cb904e3c6c (patch)
tree29b8be7a70d4133266e2dba2917b8b8b3bdc30cc /frontend
parentedee4a7fc46dd881c2a45d14ce569fbfd8336516 (diff)
downloadpcsx_rearmed-bb88ec28db0535102b70a7c18ef095cb904e3c6c.tar.gz
pcsx_rearmed-bb88ec28db0535102b70a7c18ef095cb904e3c6c.tar.bz2
pcsx_rearmed-bb88ec28db0535102b70a7c18ef095cb904e3c6c.zip
gpu-gles: refactor for caanoo/wiz support
too bad it's unusable there.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plat_omap.c2
-rw-r--r--frontend/plat_pollux.c3
-rw-r--r--frontend/plugin_lib.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/frontend/plat_omap.c b/frontend/plat_omap.c
index 62f198b..998e1df 100644
--- a/frontend/plat_omap.c
+++ b/frontend/plat_omap.c
@@ -177,6 +177,8 @@ void plat_init(void)
g_menuscreen_w = w;
g_menuscreen_h = h;
g_menuscreen_ptr = vout_fbdev_flip(main_fb);
+ pl_rearmed_cbs.screen_w = w;
+ pl_rearmed_cbs.screen_h = h;
w = 640;
h = 512;
diff --git a/frontend/plat_pollux.c b/frontend/plat_pollux.c
index 6247dc1..af12f1e 100644
--- a/frontend/plat_pollux.c
+++ b/frontend/plat_pollux.c
@@ -610,6 +610,9 @@ void plat_init(void)
psx_width = 320;
psx_height = 240;
psx_bpp = 16;
+
+ pl_rearmed_cbs.screen_w = 320;
+ pl_rearmed_cbs.screen_h = 240;
}
void plat_finish(void)
diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h
index e6d1f7d..e2f1d55 100644
--- a/frontend/plugin_lib.h
+++ b/frontend/plugin_lib.h
@@ -53,6 +53,7 @@ struct rearmed_cbs {
unsigned int *gpu_frame_count;
unsigned int *gpu_hcnt;
unsigned int flip_cnt; // increment manually if not using pl_vout_flip
+ unsigned int screen_w, screen_h; // gles plugin wants this
struct {
int allow_interlace; // 0 off, 1 on, 2 guess
} gpu_neon;