Made stamp control button area recognized.

This commit is contained in:
William Kendrick 2003-09-28 08:00:40 +00:00
parent a5c75316d0
commit 36fb8b275c
2 changed files with 11 additions and 2 deletions

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/
2003.Sep.27 (0.9.13) [cvs]
2003.Sep.28 (0.9.13) [cvs]
* Translated into Tamil [buggy]
Mugunth <mugunth@thamizha.com>

View file

@ -12,7 +12,7 @@
#define VER_VERSION "0.9.13"
#define VER_DATE "2003.09.27"
#define VER_DATE "2003.09.28"
/* #define DEBUG */
@ -1595,6 +1595,15 @@ void mainloop(void)
do_draw = 1;
}
}
else if (cur_tool == TOOL_STAMP &&
event.button.y >= (48 * ((max / 2) + TOOLOFFSET / 2)) + 40 &&
event.button.y < (48 * ((max / 2) + TOOLOFFSET / 2)) + 40 + 96 &&
!disable_stamp_controls)
{
/* Stamp controls! */
printf("CLICK!\n");
}
/* Assign the change(s), if any / redraw, if needed: */