-// (c) Copyright 2006-2009 notaz, All rights reserved.\r
-// Free for non-commercial use.\r
-\r
-// For commercial use, separate licencing terms must be obtained.\r
+/*\r
+ * PicoDrive\r
+ * (C) notaz, 2010,2011\r
+ *\r
+ * This work is licensed under the terms of MAME license.\r
+ * See COPYING file in the top-level directory.\r
+ */\r
\r
#include <stdio.h>\r
#include <unistd.h>\r
#include "../common/input.h"\r
#include "../linux/sndout_oss.h"\r
#include "../linux/fbdev.h"\r
+#include "../linux/xenv.h"\r
#include "plat.h"\r
#include "asm_utils.h"\r
#include "version.h"\r
void plat_video_flip(void)\r
{\r
g_screen_ptr = vout_fbdev_flip(layer_fb);\r
+\r
+ // XXX: drain OS event queue here, maybe we'll actually use it someday..\r
+ int dummy;\r
+ xenv_update(&dummy);\r
}\r
\r
void plat_video_toggle_renderer(int change, int is_menu)\r
*/\r
}\r
\r
-#include "../linux/oshide.h"\r
-\r
void plat_early_init(void)\r
{\r
}\r
exit(1);\r
}\r
\r
- oshide_init();\r
+ xenv_init();\r
\r
w = h = 0;\r
main_fb = vout_fbdev_init(main_fb_name, &w, &h, 16, 2);\r
{\r
sndout_oss_exit();\r
vout_fbdev_finish(main_fb);\r
- oshide_finish();\r
+ xenv_finish();\r
\r
printf("all done\n");\r
}\r