aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
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;