summaryrefslogtreecommitdiff
path: root/src/render/MBlur.cpp
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/MBlur.cpp
parentc076998ba308b79041af0672137c231581778ad3 (diff)
tried to fix some half-pixel bugs
Diffstat (limited to 'src/render/MBlur.cpp')
-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);