summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-26 21:50:52 +0200
committeraap <aap@papnet.eu>2020-04-26 21:50:52 +0200
commit1b5616688ea64e1b32783dddcde22e7447a742ef (patch)
tree0cc818828f794e2dc3309d95667b0ebd539bbafe /src/render
parentupdate librw (diff)
downloadre3-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.cpp12
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);