summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-09-30 11:35:21 +0000
committerpeter1138 <peter1138@openttd.org>2014-09-30 11:35:21 +0000
commit17cd86d76264f09d7bde59e41f8992718e968811 (patch)
treea36acff3b669b49bd7ef51e46a5a35f795ac9bc8 /src
parent1273ca8e8d8729ce3dce89fb52e1fdc1f9fb4f33 (diff)
downloadopenttd-17cd86d76264f09d7bde59e41f8992718e968811.tar.xz
(svn r26942) -Codechange: Make sprite aligner useful for people making full-zoom graphics.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_debug_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index 987e1cf15..4abfa4b1f 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -829,8 +829,8 @@ struct SpriteAlignerWindow : Window {
case WID_SA_OFFSETS: {
const Sprite *spr = GetSprite(this->current_sprite, ST_NORMAL);
- SetDParam(0, spr->x_offs / ZOOM_LVL_BASE);
- SetDParam(1, spr->y_offs / ZOOM_LVL_BASE);
+ SetDParam(0, spr->x_offs);
+ SetDParam(1, spr->y_offs);
break;
}
@@ -950,10 +950,10 @@ struct SpriteAlignerWindow : Window {
*/
Sprite *spr = const_cast<Sprite *>(GetSprite(this->current_sprite, ST_NORMAL));
switch (widget) {
- case WID_SA_UP: spr->y_offs -= ZOOM_LVL_BASE; break;
- case WID_SA_DOWN: spr->y_offs += ZOOM_LVL_BASE; break;
- case WID_SA_LEFT: spr->x_offs -= ZOOM_LVL_BASE; break;
- case WID_SA_RIGHT: spr->x_offs += ZOOM_LVL_BASE; break;
+ case WID_SA_UP: spr->y_offs--; break;
+ case WID_SA_DOWN: spr->y_offs++; break;
+ case WID_SA_LEFT: spr->x_offs--; break;
+ case WID_SA_RIGHT: spr->x_offs++; break;
}
/* Of course, we need to redraw the sprite, but where is it used?
* Everywhere is a safe bet. */