diff options
author | Andrew Haines <andrewd207@aol.com> | 2010-11-08 21:22:16 -0500 |
---|---|---|
committer | Andrew Haines <andrewd207@aol.com> | 2010-11-08 21:22:16 -0500 |
commit | d10b4a4c997bd1318cc7936fb433a6d2679ab3b2 (patch) | |
tree | 7dd1ce176bd24e6932a78430a640d55abf86fb71 /src/corelib | |
parent | 26d5899b07b279c3b739dd2eec02f881d90da04e (diff) | |
download | fpGUI-d10b4a4c997bd1318cc7936fb433a6d2679ab3b2.tar.xz |
Menu's now invert the color the arrow for submenu's so they are visible when highlighted
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/fpg_main.pas | 4 |
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; |