summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_main.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index b5b7fb17..6940d55f 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -2237,7 +2237,11 @@ begin
lx := (r.height div 2) - 3;
lx := r.right-lx-2;
ly := y + ((r.Height-img.Height) div 2);
+ if mifSelected in AFlags then
+ img.Invert; // invert modifies the original image, so we must restore it later
ACanvas.DrawImage(lx, ly, img);
+ if mifSelected in AFlags then
+ img.Invert; // restore image to original state
end;
end;