Fix issue 460: brush 180° rotation. Also, the keyboard shortcut had no effect at all
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2008 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
030f4a716f
commit
1efe6ec5be
@ -3987,7 +3987,8 @@ void Button_Brush_FX(void)
|
|||||||
Rotate_90_deg();
|
Rotate_90_deg();
|
||||||
break;
|
break;
|
||||||
case 5 : // 180° Rotation
|
case 5 : // 180° Rotation
|
||||||
Rotate_180_deg_lowlevel(Brush, Brush_width, Brush_height);
|
Rotate_180_deg_lowlevel(Brush_original_pixels, Brush_width, Brush_height);
|
||||||
|
Remap_general_lowlevel(Brush_colormap,Brush_original_pixels,Brush,Brush_width,Brush_height,Brush_width);
|
||||||
Brush_offset_X=(Brush_width>>1);
|
Brush_offset_X=(Brush_width>>1);
|
||||||
Brush_offset_Y=(Brush_height>>1);
|
Brush_offset_Y=(Brush_height>>1);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -934,7 +934,7 @@ void Main_handler(void)
|
|||||||
break;
|
break;
|
||||||
case SPECIAL_ROTATE_180 : // 180° brush rotation
|
case SPECIAL_ROTATE_180 : // 180° brush rotation
|
||||||
Hide_cursor();
|
Hide_cursor();
|
||||||
Rotate_180_deg_lowlevel(Brush, Brush_width, Brush_height);
|
Rotate_180_deg_lowlevel(Brush_original_pixels, Brush_width, Brush_height);
|
||||||
// Remap according to the last used remap table
|
// Remap according to the last used remap table
|
||||||
Remap_general_lowlevel(Brush_colormap,Brush_original_pixels,Brush,Brush_width,Brush_height,Brush_width);
|
Remap_general_lowlevel(Brush_colormap,Brush_original_pixels,Brush,Brush_width,Brush_height,Brush_width);
|
||||||
Brush_offset_X=(Brush_width>>1);
|
Brush_offset_X=(Brush_width>>1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user