From 747a58e2533fd47960989d06940720f5e9e253f1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 26 Apr 2015 05:46:56 +0200 Subject: [PATCH] (PS Libdbgfont) Refactor --- gfx/drivers_font/ps_libdbgfont.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/drivers_font/ps_libdbgfont.c b/gfx/drivers_font/ps_libdbgfont.c index 6cc4f99414..433959c27b 100644 --- a/gfx/drivers_font/ps_libdbgfont.c +++ b/gfx/drivers_font/ps_libdbgfont.c @@ -15,7 +15,6 @@ */ #include "../font_renderer_driver.h" -#include "../drivers/gl_common.h" #include "../font_driver.h" #if defined(SN_TARGET_PSP2) @@ -35,7 +34,7 @@ static void *libdbg_font_init_font(void *gl_data, const char *font_path, float font_size) { - gl_t *gl = (gl_t*)gl_data; + global_t *global = global_get_ptr(); (void)font_path; (void)font_size; @@ -45,8 +44,8 @@ static void *libdbg_font_init_font(void *gl_data, const char *font_path, float f cfg.fontSize = SCE_DBGFONT_FONTSIZE_LARGE; #elif defined(__CELLOS_LV2__) cfg.bufSize = SCE_DBGFONT_BUFSIZE_LARGE; - cfg.screenWidth = gl->win_width; - cfg.screenHeight = gl->win_height; + cfg.screenWidth = global->video_data.width; + cfg.screenHeight = global->video_data.height; #endif DbgFontInit(&cfg);