From 93939d6c929d2f89b4fc7785a9a5af26d7c65941 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 31 Jan 2016 14:48:59 +0100 Subject: [PATCH] u/v coordinates should be of type uint8_t --- mednafen/psx/gpu_sprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mednafen/psx/gpu_sprite.cpp b/mednafen/psx/gpu_sprite.cpp index 6d5df475..fffdaf83 100644 --- a/mednafen/psx/gpu_sprite.cpp +++ b/mednafen/psx/gpu_sprite.cpp @@ -9,7 +9,7 @@ void PS_GPU::DrawSprite(int32_t x_arg, int32_t y_arg, int32_t w, int32_t h, uint int32_t x_start, x_bound; int32_t y_start, y_bound; - uint16_t u, v; + uint8_t u, v; int v_inc = 1, u_inc = 1; //printf("[GPU] Sprite: x=%d, y=%d, w=%d, h=%d\n", x_arg, y_arg, w, h); @@ -71,7 +71,7 @@ void PS_GPU::DrawSprite(int32_t x_arg, int32_t y_arg, int32_t w, int32_t h, uint for(int32_t y = y_start; MDFN_LIKELY(y < y_bound); y++) { - uint16_t u_r; + uint8_t u_r; if(textured) u_r = u;