From 1efe6ec5be3d22aa3596196fd331c6f4e1331efe Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Tue, 25 Sep 2012 22:05:32 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20issue=20460:=20brush=20180=C2=B0=20rotati?= =?UTF-8?q?on.=20Also,=20the=20keyboard=20shortcut=20had=20no=20effect=20a?= =?UTF-8?q?t=20all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2008 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/buttons.c | 3 ++- src/engine.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/buttons.c b/src/buttons.c index 52adb1c8..c78fe04b 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -3987,7 +3987,8 @@ void Button_Brush_FX(void) Rotate_90_deg(); break; 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_Y=(Brush_height>>1); break; diff --git a/src/engine.c b/src/engine.c index 562fafba..261ce73b 100644 --- a/src/engine.c +++ b/src/engine.c @@ -934,7 +934,7 @@ void Main_handler(void) break; case SPECIAL_ROTATE_180 : // 180° brush rotation 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_general_lowlevel(Brush_colormap,Brush_original_pixels,Brush,Brush_width,Brush_height,Brush_width); Brush_offset_X=(Brush_width>>1);