Picking the color at mouse release so if running on a touchscreen device one can get an overview of what wil be selected while dragging the finger on the screen.

This commit is contained in:
Pere Pujal i Carabantes 2013-04-02 21:39:32 +00:00
parent f664b7af18
commit 01556f1522

View file

@ -19559,7 +19559,7 @@ static int do_color_picker(void)
done = 1; done = 1;
} }
} }
else if (event.type == SDL_MOUSEBUTTONDOWN && else if (event.type == SDL_MOUSEBUTTONUP &&
valid_click(event.button.button)) valid_click(event.button.button))
{ {
if (event.button.x >= color_picker_left && if (event.button.x >= color_picker_left &&