diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/MenuItem.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc index 7890188..172725d 100644 --- a/src/FbTk/MenuItem.cc +++ b/src/FbTk/MenuItem.cc | |||
@@ -207,12 +207,14 @@ void MenuItem::draw(FbDrawable &draw, | |||
207 | if (theme->bulletPos() == FbTk::RIGHT) | 207 | if (theme->bulletPos() == FbTk::RIGHT) |
208 | sel_x += static_cast<int>(width) - h - bevel; | 208 | sel_x += static_cast<int>(width) - h - bevel; |
209 | 209 | ||
210 | // selected pixmap is foreground | ||
211 | if (draw_foreground && isToggleItem()) { | ||
212 | 210 | ||
213 | // | 211 | // 'draw_foreground' was used to decide if to draw the toggleitem. |
214 | // ToggleItem | 212 | // somehow(tm) this lead to not rendering the toggleitem on bringing |
215 | // | 213 | // up the menu. it would be rendered once the user highlights the item, |
214 | // but not before. i removed the check against 'draw_foreground' and | ||
215 | // thus make it an unused variable. | ||
216 | if (isToggleItem()) { | ||
217 | |||
216 | const PixmapWithMask *pm = 0; | 218 | const PixmapWithMask *pm = 0; |
217 | 219 | ||
218 | if (isSelected()) { | 220 | if (isSelected()) { |