From 04c78761b7ad6538c46eef650b0b42fc3f962bd3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 30 Sep 2014 11:35:21 +0000 Subject: [PATCH] (svn r26942) -Codechange: Make sprite aligner useful for people making full-zoom graphics. --- src/newgrf_debug_gui.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 987e1cf158..4abfa4b1fe 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(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. */