frontend: eliminate osd_text dupes
[picodrive.git] / platform / pandora / plat.c
index f82d702..8f8eac6 100644 (file)
@@ -135,24 +135,6 @@ void pemu_validate_config(void)
        currentConfig.CPUclock = plat_target_cpu_clock_get();\r
 }\r
 \r
-static void osd_text(int x, int y, const char *text)\r
-{\r
-       int len = strlen(text)*8;\r
-       int i, h;\r
-\r
-       len++;\r
-       if (x + len > g_screen_width)\r
-               len = g_screen_width - x;\r
-\r
-       for (h = 0; h < 8; h++) {\r
-               unsigned short *p;\r
-               p = (unsigned short *)g_screen_ptr + x + g_screen_width*(y + h);\r
-               for (i = len; i > 0; i--, p++)\r
-                       *p = (*p>>2) & 0x39e7;\r
-       }\r
-       emu_text_out16(x, y, text);\r
-}\r
-\r
 static void draw_cd_leds(void)\r
 {\r
        int old_reg;\r
@@ -182,9 +164,9 @@ static void draw_cd_leds(void)
 void pemu_finalize_frame(const char *fps, const char *notice)\r
 {\r
        if (notice && notice[0])\r
-               osd_text(2, g_osd_y, notice);\r
+               emu_osd_text16(2, g_osd_y, notice);\r
        if (fps && fps[0] && (currentConfig.EmuOpt & EOPT_SHOW_FPS))\r
-               osd_text(g_osd_fps_x, g_osd_y, fps);\r
+               emu_osd_text16(g_osd_fps_x, g_osd_y, fps);\r
        if ((PicoAHW & PAHW_MCD) && (currentConfig.EmuOpt & EOPT_EN_CD_LEDS))\r
                draw_cd_leds();\r
 }\r