Added a quick hack to mitigate font sensitivity problems until it can be handled properly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -419,6 +419,12 @@ MapView::MapView(BRect rect, const char *name, Keymap* keymap)
|
|||||||
fCurrentMap(keymap),
|
fCurrentMap(keymap),
|
||||||
fCurrentMouseKey(0)
|
fCurrentMouseKey(0)
|
||||||
{
|
{
|
||||||
|
// TODO: Properly handle font sensitivity in drawing the keys.
|
||||||
|
// This at least prevents the app from looking horrible until the font sensitivity for this app
|
||||||
|
// can be done the Right Way.
|
||||||
|
if(fCurrentFont.Size() > 14)
|
||||||
|
fCurrentFont.SetSize(14);
|
||||||
|
|
||||||
SetViewColor(B_TRANSPARENT_COLOR);
|
SetViewColor(B_TRANSPARENT_COLOR);
|
||||||
|
|
||||||
BRect frameRect = BRect(14, 16, Bounds().right-12, 30);
|
BRect frameRect = BRect(14, 16, Bounds().right-12, 30);
|
||||||
|
|||||||
Reference in New Issue
Block a user