diff options
author | aap <aap@papnet.eu> | 2020-04-26 21:50:52 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-26 21:50:52 +0200 |
commit | 1b5616688ea64e1b32783dddcde22e7447a742ef (patch) | |
tree | 0cc818828f794e2dc3309d95667b0ebd539bbafe /src/render/MBlur.cpp | |
parent | c076998ba308b79041af0672137c231581778ad3 (diff) |
tried to fix some half-pixel bugs
Diffstat (limited to 'src/render/MBlur.cpp')
-rw-r--r-- | src/render/MBlur.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/MBlur.cpp b/src/render/MBlur.cpp index c3a25bce..68ec1194 100644 --- a/src/render/MBlur.cpp +++ b/src/render/MBlur.cpp @@ -58,13 +58,13 @@ CMBlur::CreateImmediateModeData(RwCamera *cam, RwRect *rect) float zero, xmax, ymax; if(RwRasterGetDepth(RwCameraGetRaster(cam)) == 16){ - zero = 0.5f; - xmax = rect->w + 0.5f; - ymax = rect->h + 0.5f; + zero = HALFPX; + xmax = rect->w + HALFPX; + ymax = rect->h + HALFPX; }else{ - zero = -0.5f; - xmax = rect->w - 0.5f; - ymax = rect->h - 0.5f; + zero = -HALFPX; + xmax = rect->w - HALFPX; + ymax = rect->h - HALFPX; } RwIm2DVertexSetScreenX(&Vertex[0], zero); |