* fixed background flickering

* removed dead code (doesn't use pulse anymore)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner
2008-02-25 17:04:37 +00:00
parent ff13a96fe4
commit c80d10ee35
+3 -5
View File
@@ -66,7 +66,7 @@ KeymapWindow::KeymapWindow()
fMapView = new MapView(BRect(150, 9, 600, 189), "mapView", &fCurrentMap); fMapView = new MapView(BRect(150, 9, 600, 189), "mapView", &fCurrentMap);
placeholderView->AddChild(fMapView); placeholderView->AddChild(fMapView);
SetPulseRate(10000); fMapView->SetViewColor(B_TRANSPARENT_COLOR);
BMenuItem *item = fFontMenu->FindMarked(); BMenuItem *item = fFontMenu->FindMarked();
if (item) { if (item) {
@@ -416,7 +416,7 @@ KeymapWindow::CurrentMap()
MapView::MapView(BRect rect, const char *name, Keymap* keymap) MapView::MapView(BRect rect, const char *name, Keymap* keymap)
: BControl(rect, name, NULL, NULL, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_PULSE_NEEDED), : BControl(rect, name, NULL, NULL, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW),
fCurrentFont(*be_plain_font), fCurrentFont(*be_plain_font),
fCurrentMap(keymap), fCurrentMap(keymap),
fCurrentMouseKey(0) fCurrentMouseKey(0)
@@ -427,9 +427,7 @@ MapView::MapView(BRect rect, const char *name, Keymap* keymap)
if (fCurrentFont.Size() > 14) if (fCurrentFont.Size() > 14)
fCurrentFont.SetSize(14); fCurrentFont.SetSize(14);
SetViewColor(B_TRANSPARENT_COLOR); BRect frameRect = BRect(14, 16, Bounds().right - 12, 30);
BRect frameRect = BRect(14, 16, Bounds().right-12, 30);
BRect textRect = frameRect; BRect textRect = frameRect;
textRect.OffsetTo(B_ORIGIN); textRect.OffsetTo(B_ORIGIN);
textRect.InsetBy(1, 1); textRect.InsetBy(1, 1);