Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorperepujal <perepujal>2011-03-16 22:15:25 (GMT)
committer perepujal <perepujal>2011-03-16 22:15:25 (GMT)
commit3adf90df093b8313141a677bf9e53d4150e183b9 (patch)
tree36fd4e5a2e9439b8922ad7840ca8c650822299d8
parent1edead670cd5217efcd98b36b054ba10998ecef7 (diff)
mouse acces for magic, still fill and ripples are wrong in mouse accessibility mode, all other should work.
-rw-r--r--src/tuxpaint.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
index 2a710f2..350873b 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)