diff options
Diffstat (limited to 'emulators/o2em/files/patch-vdc.c')
-rw-r--r-- | emulators/o2em/files/patch-vdc.c | 34 |
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); + + } |