summaryrefslogtreecommitdiff
path: root/emulators/o2em/files/patch-vdc.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-01 15:00:55 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-01 15:00:55 +0000
commit662f5af60cf3cb4a4bc699428f74a40133012403 (patch)
tree7809966d22d68c002e81b029e455c3e31eb80616 /emulators/o2em/files/patch-vdc.c
parent- Update to 1.1.0 (diff)
Odyssey2 / Videopac+ emulator.
PR: ports/82819 Submitted by: Gunter Wambaugh <gunter@thewambaughs.net>
Diffstat (limited to 'emulators/o2em/files/patch-vdc.c')
-rw-r--r--emulators/o2em/files/patch-vdc.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/emulators/o2em/files/patch-vdc.c b/emulators/o2em/files/patch-vdc.c
new file mode 100644
index 000000000000..68014ea39e1f
--- /dev/null
+++ b/emulators/o2em/files/patch-vdc.c
@@ -0,0 +1,34 @@
+diff -urN ../o2em117src.old/src/vdc.c ./src/vdc.c
+--- ../o2em117src.old/src/vdc.c Fri Jun 24 16:02:21 2005
++++ ./src/vdc.c Fri Jun 24 16:00:34 2005
+@@ -339,8 +339,7 @@
+ last=t;
+ }
+ if (curr) {
+- text_mode(0);
+- textprintf(bmp, font, 20 , 4, 7, "FPS: %3d",(int)((200.0*TICKSPERSEC)/curr+0.5));
++ textprintf_ex(bmp, font, 20, 4, 7, 0, "FPS: %3d",(int)((200.0*TICKSPERSEC)/curr+0.5));
+ }
+ }
+
+@@ -528,9 +527,8 @@
+
+
+ static void txtmsg(int x, int y, int c, const char *s){
+- text_mode(-1);
+- textout_centre(bmp, font, s, x+1 , y+1, 32);
+- textout_centre(bmp, font, s, x , y, c);
++ textout_centre_ex(bmp, font, s, x+1 , y+1, 32, -1);
++ textout_centre_ex(bmp, font, s, x , y, c, -1);
+ }
+
+
+@@ -604,7 +602,6 @@
+ init_keyboard();
+ }
+
+- set_window_close_button(TRUE);
+- set_window_close_hook(window_close_hook);
++ set_close_button_callback(window_close_hook);
+
+ }