mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
GRAPHICS: Fix regression in polygon drawing
This commit is contained in:
parent
acdddf8ade
commit
d2303ac6dd
@ -367,7 +367,7 @@ void drawPolygonScan(int *polyX, int *polyY, int npoints, Common::Rect &bbox, in
|
||||
}
|
||||
|
||||
// Sort the nodes
|
||||
Common::sort(nodeX, ARRAYEND(nodeX));
|
||||
Common::sort(nodeX, &nodeX[nodes]);
|
||||
|
||||
// Fill the pixels between node pairs.
|
||||
for (i = 0; i < nodes; i += 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user