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);