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 | |
parent | update librw (diff) | |
download | re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.gz re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.bz2 re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.lz re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.xz re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.zst re3-1b5616688ea64e1b32783dddcde22e7447a742ef.zip |
Diffstat (limited to 'src/render')
-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); |