notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c8d21
)
3ds: fix build
author
notaz
<notasas@gmail.com>
Sat, 28 Dec 2024 21:43:01 +0000
(23:43 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 28 Dec 2024 21:43:01 +0000
(23:43 +0200)
c++ and long s32 combines to a peril
plugins/gpu_unai/gpu_raster_polygon.h
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpu_unai/gpu_raster_polygon.h
b/plugins/gpu_unai/gpu_raster_polygon.h
index
fe7a818
..
9b259bb
100644
(file)
--- a/
plugins/gpu_unai/gpu_raster_polygon.h
+++ b/
plugins/gpu_unai/gpu_raster_polygon.h
@@
-200,7
+200,7
@@
static bool polyUseTriangle(const PolyVertex *vbuf, int tri_num, const PolyVerte
y_off = GPU_EXPANDSIGN(lowest_y + y_off) - lowest_y;
// Determine if triangle is completely outside clipping range
-
int
xmin, xmax, ymin, ymax;
+
s32
xmin, xmax, ymin, ymax;
xmin = gpu_unai.DrawingArea[0]; xmax = gpu_unai.DrawingArea[2];
ymin = gpu_unai.DrawingArea[1]; ymax = gpu_unai.DrawingArea[3];
int clipped_lowest_x = Max2(xmin, lowest_x + x_off);