summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-01 20:54:24 +0000
committerfrosch <frosch@openttd.org>2015-02-01 20:54:24 +0000
commita8080b62563dcb9f3e3bf5180ebf2de6cf6b68ae (patch)
tree3ac628ab264823257073f281ce7e692f07e5c651 /src/gfx.cpp
parent3bc7ee3ab731c7a855f811b36356ed907b42989a (diff)
downloadopenttd-a8080b62563dcb9f3e3bf5180ebf2de6cf6b68ae.tar.xz
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 6db886dda..b10943553 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -1532,10 +1532,10 @@ void UpdateCursorSize()
CursorVars *cv = &_cursor;
const Sprite *p = GetSprite(GB(cv->sprite, 0, SPRITE_WIDTH), ST_NORMAL);
- cv->size.y = UnScaleByZoom(p->height, ZOOM_LVL_GUI);
- cv->size.x = UnScaleByZoom(p->width, ZOOM_LVL_GUI);
- cv->offs.x = UnScaleByZoom(p->x_offs, ZOOM_LVL_GUI);
- cv->offs.y = UnScaleByZoom(p->y_offs, ZOOM_LVL_GUI);
+ cv->size.y = UnScaleGUI(p->height);
+ cv->size.x = UnScaleGUI(p->width);
+ cv->offs.x = UnScaleGUI(p->x_offs);
+ cv->offs.y = UnScaleGUI(p->y_offs);
cv->dirty = true;
}