clarify PicoDrive's license
[picodrive.git] / platform / pandora / plat.c
index 91468a1..9863a32 100644 (file)
@@ -1,7 +1,10 @@
-// (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
@@ -20,6 +23,7 @@
 #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
@@ -169,6 +173,10 @@ void pemu_finalize_frame(const char *fps, const char *notice)
 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
@@ -542,8 +550,6 @@ void plat_wait_till_us(unsigned int us_to)
 */\r
 }\r
 \r
-#include "../linux/oshide.h"\r
-\r
 void plat_early_init(void)\r
 {\r
 }\r
@@ -576,7 +582,7 @@ void plat_init(void)
                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
@@ -629,7 +635,7 @@ void plat_finish(void)
 {\r
        sndout_oss_exit();\r
        vout_fbdev_finish(main_fb);\r
-       oshide_finish();\r
+       xenv_finish();\r
 \r
        printf("all done\n");\r
 }\r