iBrush rotation now snap cursor in an useful way (to fixed angles)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1582 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2010-08-22 16:02:17 +00:00
parent 520da7d168
commit 715ddad331
3 changed files with 9 additions and 2 deletions

View File

@@ -494,9 +494,7 @@ void Line_12_5(void)
// On corrige les coordonnées de la ligne si la touche shift est appuyée...
if(SDL_GetModState() & KMOD_SHIFT)
{
Clamp_coordinates_regular_angle(start_x,start_y,&cursor_x,&cursor_y);
}
// On vient de bouger
if ((cursor_x!=end_x) || (cursor_y!=end_y))