Make stamp outlines be displayed on touchscreens.
This commit is contained in:
parent
8577a97c23
commit
3b0eea5118
1 changed files with 7 additions and 1 deletions
|
|
@ -6228,6 +6228,12 @@ static void mainloop(void)
|
||||||
{
|
{
|
||||||
if (stamp_tool_mode == STAMP_TOOL_MODE_PLACE)
|
if (stamp_tool_mode == STAMP_TOOL_MODE_PLACE)
|
||||||
{
|
{
|
||||||
|
/* Updating the screen to draw the outlines in touchscreens where there could be touch without previous drag. */
|
||||||
|
update_screen(old_x - (CUR_STAMP_W + 1) / 2 + r_canvas.x,
|
||||||
|
old_y - (CUR_STAMP_H + 1) / 2 + r_canvas.y,
|
||||||
|
old_x + (CUR_STAMP_W + 1) / 2 + r_canvas.x,
|
||||||
|
old_y + (CUR_STAMP_H + 1) / 2 + r_canvas.y);
|
||||||
|
|
||||||
if (old_x >= 0 && old_y >= 0 && old_x <= r_canvas.w
|
if (old_x >= 0 && old_y >= 0 && old_x <= r_canvas.w
|
||||||
&& old_y <= r_canvas.h)
|
&& old_y <= r_canvas.h)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue