summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-26 23:55:22 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-26 23:55:22 +0200
commita38a867cc5fe1677866b7a6b6c01c4dc5dc3387b (patch)
tree35f1795ea2a38d996e43dd5119e28e26a34f06d3 /src/extras
parentpools compatibility (diff)
parentMerge pull request #489 from Nick007J/master (diff)
downloadre3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar.gz
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar.bz2
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar.lz
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar.xz
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.tar.zst
re3-a38a867cc5fe1677866b7a6b6c01c4dc5dc3387b.zip
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/debugmenu.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/extras/debugmenu.cpp b/src/extras/debugmenu.cpp
index f419e76f..1c5e26ee 100644
--- a/src/extras/debugmenu.cpp
+++ b/src/extras/debugmenu.cpp
@@ -1068,13 +1068,13 @@ drawArrow(RwRect r, int direction, int style)
int top = r.y;
int bottom = r.y+r.h;
- float umin = 0.5f / width;
- float vmin = 0.5f / height;
- float umax = (width + 0.5f) / width;
- float vmax = (height + 0.5f) / height;
+ float umin = HALFPX / width;
+ float vmin = HALFPX / height;
+ float umax = (width + HALFPX) / width;
+ float vmax = (height + HALFPX) / height;
if(direction < 0){
- vmin = (height - 0.5f) / height;
- vmax = -0.5f / height;
+ vmin = (height - HALFPX) / height;
+ vmax = -HALFPX / height;
}
if(style){
@@ -1167,10 +1167,10 @@ drawMouse(void)
float h = RwRasterGetHeight(cursor);
float recipz = 1.0f/RwCameraGetNearClipPlane(cam);
- float umin = 0.5f / w;
- float vmin = 0.5f / h;
- float umax = (w + 0.5f) / w;
- float vmax = (h + 0.5f) / h;
+ float umin = HALFPX / w;
+ float vmin = HALFPX / h;
+ float umax = (w + HALFPX) / w;
+ float vmax = (h + HALFPX) / h;
vert = vertices;
RwIm2DVertexSetScreenX(vert, x);