Fix "snap axis" which was accidentally disabled for non SDL versions

This commit is contained in:
Thomas Bernard 2019-07-08 23:28:49 +02:00
parent cc99578f38
commit f59e65f528
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -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)