mouse acces for magic, still fill and ripples are wrong in mouse accessibility mode, all other should work.

This commit is contained in:
Pere Pujal i Carabantes 2011-03-16 22:15:25 +00:00
parent 189fcc877d
commit 4c7a610cb9

View file

@ -4513,7 +4513,10 @@ static void mainloop(void)
} }
if (mouseaccessibility) 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) else if (cur_tool == TOOL_ERASER)
{ {
@ -17836,7 +17839,7 @@ static float magic_sRGB_to_linear(Uint8 srgb)
static int magic_button_down(void) 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) static SDL_Surface * magic_scale(SDL_Surface * surf, int w, int h, int aspect)