From c86c09ddfe9a44801c3ba33abb77222b9d379997 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 16 Feb 2006 20:31:07 +0000 Subject: [PATCH] Added a TODO for bug 158. I can't do anything at the moment because I can't test how the bitmaps look like in beos git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16438 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuItem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/interface/MenuItem.cpp b/src/kits/interface/MenuItem.cpp index 68b85a4787..e751da92b1 100644 --- a/src/kits/interface/MenuItem.cpp +++ b/src/kits/interface/MenuItem.cpp @@ -653,6 +653,9 @@ BMenuItem::DrawShortcutSymbol() shortcut += fShortcutChar; + // TODO: If the shortcut is one of B_DOWN_ARROW, B_UP_ARROW, B_ENTER, etc. + // we can't just use DrawString(), as those aren't valid ascii/UTF8 charachters. + // In that case we need to build a BBitmap for the given shortcut and draw it using DrawBitmap() fSuper->DrawString(shortcut.String(), ContentLocation() + BPoint(fBounds.Width() - 14.0f - 32.0f, fBounds.Height() - 4.0f)); }