From cc678f4fc7cf24e295d2dba354bdf706694f4394 Mon Sep 17 00:00:00 2001 From: JS Deck Date: Fri, 18 Sep 2020 13:36:36 -0300 Subject: [PATCH] Use signed integer for comparison --- libretro.cpp | 2 +- mednafen/psx/gpu_polygon.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro.cpp b/libretro.cpp index 0fb701a7..cdf79789 100644 --- a/libretro.cpp +++ b/libretro.cpp @@ -126,7 +126,7 @@ enum dither_mode psx_gpu_dither_mode; //iCB: PGXP options unsigned int psx_pgxp_mode; -unsigned int psx_pgxp_2d_tol; +int psx_pgxp_2d_tol; unsigned int psx_pgxp_vertex_caching; unsigned int psx_pgxp_texture_correction; // \iCB diff --git a/mednafen/psx/gpu_polygon.cpp b/mednafen/psx/gpu_polygon.cpp index 5500e9f9..4c1951d6 100644 --- a/mednafen/psx/gpu_polygon.cpp +++ b/mednafen/psx/gpu_polygon.cpp @@ -499,7 +499,7 @@ void Finalise_UVLimits(PS_GPU *gpu); bool Hack_FindLine(PS_GPU *gpu, tri_vertex* vertices, tri_vertex* outVertices); bool Hack_ForceLine(PS_GPU *gpu, tri_vertex* vertices, tri_vertex* outVertices); -extern unsigned int psx_pgxp_2d_tol; +extern int psx_pgxp_2d_tol; template static void Command_DrawPolygon(PS_GPU *gpu, const uint32_t *cb)