From f59e65f5283386ab71181e3c28fcbb7004006858 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 8 Jul 2019 23:28:49 +0200 Subject: [PATCH] Fix "snap axis" which was accidentally disabled for non SDL versions --- src/windows.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/windows.c b/src/windows.c index ac7fe834..89a06e69 100644 --- a/src/windows.c +++ b/src/windows.c @@ -1987,11 +1987,10 @@ void Compute_paintbrush_coordinates(void) { // Operations that don't implement it case OPERATION_LINE: - case OPERATION_ROTATE_BRUSH: + case OPERATION_ROTATE_BRUSH: Snap_axis=0; break; // Operations that implement it -#if defined(USE_SDL) || defined(USE_SDL2) default: if (Snap_axis==0 && (Get_Key_modifiers() & GFX2_MOD_SHIFT)) { @@ -2000,7 +1999,6 @@ void Compute_paintbrush_coordinates(void) Snap_axis_origin_X=Paintbrush_X; Snap_axis_origin_Y=Paintbrush_Y; } -#endif } if (Snap_axis==1)