From 56af52a268ed0de78c969273a328bac1f738dc32 Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Mon, 31 Aug 2015 21:37:50 +0200 Subject: [PATCH] (Vita) Fix spaces --- gfx/drivers/vita2d_gfx.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gfx/drivers/vita2d_gfx.c b/gfx/drivers/vita2d_gfx.c index bcbe00488e..b4ad4b6952 100644 --- a/gfx/drivers/vita2d_gfx.c +++ b/gfx/drivers/vita2d_gfx.c @@ -160,16 +160,16 @@ static bool vita2d_gfx_frame(void *data, const void *frame, else if (vita->width > vita->height) { - float scale = SCREEN_H/(float)vita->height; - float w = vita->width * scale; + float scale = SCREEN_H/(float)vita->height; + float w = vita->width * scale; vita2d_draw_texture_scale(vita->texture, SCREEN_W/2.0f - w/2.0f, 0.0f, scale, scale); } else { - float scale = SCREEN_W/(float)vita->width; - float h = vita->height * scale; + float scale = SCREEN_W/(float)vita->width; + float h = vita->height * scale; vita2d_draw_texture_scale(vita->texture, 0.0f, SCREEN_H/2.0f - h/2.0f, scale, scale); @@ -186,16 +186,16 @@ static bool vita2d_gfx_frame(void *data, const void *frame, else if (vita->menu.width > vita->menu.height) { - float scale = SCREEN_H/(float)vita->menu.height; - float w = vita->menu.width * scale; + float scale = SCREEN_H/(float)vita->menu.height; + float w = vita->menu.width * scale; vita2d_draw_texture_scale(vita->menu.frame, SCREEN_W/2.0f - w/2.0f, 0.0f, scale, scale); } else { - float scale = SCREEN_W/(float)vita->menu.width; - float h = vita->menu.height * scale; + float scale = SCREEN_W/(float)vita->menu.width; + float h = vita->menu.height * scale; vita2d_draw_texture_scale(vita->menu.frame, 0.0f, SCREEN_H/2.0f - h/2.0f, scale, scale);