summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dock_gui.c b/dock_gui.c
index da664345d..123d60923 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -173,10 +173,11 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e)
tile_from = tile_to = e->place.tile;
switch (GetTileSlope(tile_from, NULL)) {
- case 3: tile_to += TileDiffXY(-1, 0); break;
- case 6: tile_to += TileDiffXY( 0, -1); break;
- case 9: tile_to += TileDiffXY( 0, 1); break;
- case 12: tile_to += TileDiffXY( 1, 0); break;
+ case SLOPE_SW: tile_to += TileDiffXY(-1, 0); break;
+ case SLOPE_SE: tile_to += TileDiffXY( 0, -1); break;
+ case SLOPE_NW: tile_to += TileDiffXY( 0, 1); break;
+ case SLOPE_NE: tile_to += TileDiffXY( 1, 0); break;
+ default: break;
}
VpSetPresizeRange(tile_from, tile_to);
} break;