From 26bb0105c0291f24bc597408cd46549c08178f00 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 12 Mar 2020 20:54:25 +0100 Subject: [PATCH] (Vita) Buildfix --- gfx/common/vita2d_common.h | 4 ++-- gfx/drivers/vita2d_gfx.c | 4 ++-- gfx/drivers_font/vita2d_font.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gfx/common/vita2d_common.h b/gfx/common/vita2d_common.h index ec7ce195b5..5d52f8bb0f 100644 --- a/gfx/common/vita2d_common.h +++ b/gfx/common/vita2d_common.h @@ -84,8 +84,8 @@ typedef struct vita_video bool overlay_full_screen; #endif - unsigned width; - unsigned height; + unsigned video_width; + unsigned video_height; } vita_video_t; diff --git a/gfx/drivers/vita2d_gfx.c b/gfx/drivers/vita2d_gfx.c index df1e4feb24..e0906c3449 100644 --- a/gfx/drivers/vita2d_gfx.c +++ b/gfx/drivers/vita2d_gfx.c @@ -92,8 +92,8 @@ static void *vita2d_gfx_init(const video_info_t *video, vita->tex_filter = video->smooth ? SCE_GXM_TEXTURE_FILTER_LINEAR : SCE_GXM_TEXTURE_FILTER_POINT; - vita->width = temp_width; - vita->height = temp_height; + vita->video_width = temp_width; + vita->video_height = temp_height; video_driver_set_size(temp_width, temp_height); vita2d_gfx_set_viewport(vita, temp_width, temp_height, false, true); diff --git a/gfx/drivers_font/vita2d_font.c b/gfx/drivers_font/vita2d_font.c index 9eac46368d..3b47d6cec0 100644 --- a/gfx/drivers_font/vita2d_font.c +++ b/gfx/drivers_font/vita2d_font.c @@ -275,8 +275,8 @@ static void vita2d_font_render_msg( alpha, r_dark, g_dark, b_dark, alpha_dark; vita_video_t *vita = (vita_video_t *)userdata; vita_font_t *font = (vita_font_t *)data; - unsigned width = vita->width; - unsigned height = vita->height; + unsigned width = vita->video_width; + unsigned height = vita->video_height; settings_t *settings = config_get_ptr(); float video_msg_pos_x = settings->floats.video_msg_pos_x; float video_msg_pos_y = settings->floats.video_msg_pos_y;