diff options
author | notaz | 2010-12-28 18:33:34 +0200 |
---|---|---|
committer | notaz | 2010-12-28 18:33:34 +0200 |
commit | 6d1a1ac2f1100c69dd3e1084aede6646d6c48f1e (patch) | |
tree | ee24900e683e96530b8fc7e76e1b6d645d61ae20 /frontend/plugin_lib.c | |
parent | 6b8a7b882dffec0419c8d4ba9e4caab19b6f1ab8 (diff) | |
download | pcsx_rearmed-6d1a1ac2f1100c69dd3e1084aede6646d6c48f1e.tar.gz pcsx_rearmed-6d1a1ac2f1100c69dd3e1084aede6646d6c48f1e.tar.bz2 pcsx_rearmed-6d1a1ac2f1100c69dd3e1084aede6646d6c48f1e.zip |
move layer control to plugin/plugin_lib
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r-- | frontend/plugin_lib.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 800a1ae..0ca45ce 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -62,12 +62,6 @@ static void print_cpu_usage(void) pl_text_out16(pl_fbdev_w - 28, pl_fbdev_h - 10, "%3d", tick_per_sec); } -int pl_fbdev_init(void) -{ - pl_fbdev_buf = vout_fbdev_flip(layer_fb); - return 0; -} - int pl_fbdev_set_mode(int w, int h, int bpp) { void *ret; @@ -103,8 +97,16 @@ void pl_fbdev_flip(void) pl_fbdev_buf = vout_fbdev_flip(layer_fb); } -void pl_fbdev_finish(void) +int pl_fbdev_open(void) +{ + pl_fbdev_buf = vout_fbdev_flip(layer_fb); + omap_enable_layer(1); + return 0; +} + +void pl_fbdev_close(void) { + omap_enable_layer(0); } static void update_input(void) |