mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-10 00:11:31 +00:00
(svn r23330) -Fix [FS#4853] (r23316): alignment of signals in the signals menu was incorrect
This commit is contained in:
parent
07633a064c
commit
61abe29108
@ -32,6 +32,7 @@
|
|||||||
#include "hotkeys.h"
|
#include "hotkeys.h"
|
||||||
#include "engine_base.h"
|
#include "engine_base.h"
|
||||||
#include "vehicle_func.h"
|
#include "vehicle_func.h"
|
||||||
|
#include "zoom_func.h"
|
||||||
|
|
||||||
#include "station_map.h"
|
#include "station_map.h"
|
||||||
#include "tunnelbridge_map.h"
|
#include "tunnelbridge_map.h"
|
||||||
@ -1539,8 +1540,8 @@ private:
|
|||||||
* for sprite drawing and add half of the sprite's width. For the y offset
|
* for sprite drawing and add half of the sprite's width. For the y offset
|
||||||
* we want the sprite to be aligned on the bottom, so again we undo the
|
* we want the sprite to be aligned on the bottom, so again we undo the
|
||||||
* offset for sprite drawing and assume it is the bottom of the sprite. */
|
* offset for sprite drawing and assume it is the bottom of the sprite. */
|
||||||
int sprite_center_x_offset = sprite->x_offs + sprite->width / 2;
|
int sprite_center_x_offset = UnScaleByZoom(sprite->x_offs + sprite->width / 2, ZOOM_LVL_GUI);
|
||||||
int sprite_bottom_y_offset = sprite->height + sprite->y_offs;
|
int sprite_bottom_y_offset = UnScaleByZoom(sprite->height + sprite->y_offs, ZOOM_LVL_GUI);
|
||||||
|
|
||||||
/* Next we want to know where on the window to draw. Calculate the center
|
/* Next we want to know where on the window to draw. Calculate the center
|
||||||
* and the bottom of the area to draw. */
|
* and the bottom of the area to draw. */
|
||||||
|
Loading…
Reference in New Issue
Block a user