From 4c7a610cb9bd727cec20788701b3cf1544ebbc12 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Wed, 16 Mar 2011 22:15:25 +0000 Subject: [PATCH] mouse acces for magic, still fill and ripples are wrong in mouse accessibility mode, all other should work. --- src/tuxpaint.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 2a710f248..350873bd8 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -4513,7 +4513,10 @@ static void mainloop(void) } if (mouseaccessibility) - emulate_button_pressed = !emulate_button_pressed; + { + if (magics[cur_magic].mode != MODE_FULLSCREEN) + emulate_button_pressed = !emulate_button_pressed; + } } else if (cur_tool == TOOL_ERASER) { @@ -17836,7 +17839,7 @@ static float magic_sRGB_to_linear(Uint8 srgb) static int magic_button_down(void) { - return(button_down); + return(button_down || emulate_button_pressed); } static SDL_Surface * magic_scale(SDL_Surface * surf, int w, int h, int aspect)