SoftGPU: Round screencoords.

It seems like this is what the PSP does, or maybe this is just correcting
for floating point error...
This commit is contained in:
Unknown W. Brackets 2017-05-08 06:49:38 -07:00
parent 92ba91366c
commit 37a4d1308f

View file

@ -84,7 +84,8 @@ static inline ScreenCoords ClipToScreenInternal(const ClipCoords& coords, bool *
*outside_range_flag = true;
// 16 = 0xFFFF / 4095.9375
return ScreenCoords(x * 16, y * 16, z);
// Round up at 0.625 to the nearest subpixel.
return ScreenCoords(x * 16.0f + 0.375f, y * 16.0f + 0.375f, z);
}
ScreenCoords TransformUnit::ClipToScreen(const ClipCoords& coords)