aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plat_sdl.c1
-rw-r--r--frontend/plugin_lib.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/frontend/plat_sdl.c b/frontend/plat_sdl.c
index 19d7ac0..b9a27c3 100644
--- a/frontend/plat_sdl.c
+++ b/frontend/plat_sdl.c
@@ -80,6 +80,7 @@ void plat_init(void)
in_sdl_init(in_sdl_defbinds);
in_probe();
+ pl_rearmed_cbs.only_16bpp = 1;
return;
fail:
diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h
index 8645385..bcf74ac 100644
--- a/frontend/plugin_lib.h
+++ b/frontend/plugin_lib.h
@@ -57,6 +57,7 @@ struct rearmed_cbs {
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
+ unsigned int only_16bpp; // platform is 16bpp-only
struct {
int allow_interlace; // 0 off, 1 on, 2 guess
} gpu_neon;