mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
92ba91366c
commit
37a4d1308f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue