X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpandora%2Fplat.c;h=9863a326c47a4e87c9361004c6ad94879fef169f;hb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;hp=91468a16e7fc304444d23f14ee859af9e7f5c833;hpb=21ebcfd322972ea5579bb5d4bedee9e509b42785;p=picodrive.git diff --git a/platform/pandora/plat.c b/platform/pandora/plat.c index 91468a1..9863a32 100644 --- a/platform/pandora/plat.c +++ b/platform/pandora/plat.c @@ -1,7 +1,10 @@ -// (c) Copyright 2006-2009 notaz, All rights reserved. -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. +/* + * PicoDrive + * (C) notaz, 2010,2011 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include #include @@ -20,6 +23,7 @@ #include "../common/input.h" #include "../linux/sndout_oss.h" #include "../linux/fbdev.h" +#include "../linux/xenv.h" #include "plat.h" #include "asm_utils.h" #include "version.h" @@ -169,6 +173,10 @@ void pemu_finalize_frame(const char *fps, const char *notice) void plat_video_flip(void) { g_screen_ptr = vout_fbdev_flip(layer_fb); + + // XXX: drain OS event queue here, maybe we'll actually use it someday.. + int dummy; + xenv_update(&dummy); } void plat_video_toggle_renderer(int change, int is_menu) @@ -542,8 +550,6 @@ void plat_wait_till_us(unsigned int us_to) */ } -#include "../linux/oshide.h" - void plat_early_init(void) { } @@ -576,7 +582,7 @@ void plat_init(void) exit(1); } - oshide_init(); + xenv_init(); w = h = 0; main_fb = vout_fbdev_init(main_fb_name, &w, &h, 16, 2); @@ -629,7 +635,7 @@ void plat_finish(void) { sndout_oss_exit(); vout_fbdev_finish(main_fb); - oshide_finish(); + xenv_finish(); printf("all done\n"); }