From 05a710320d2d70616a34189f7d33feab663bfd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 22 Jun 2005 17:30:27 +0000 Subject: [PATCH] MonitorView now takes anti-aliasing into account. Hide TV menu *before* adding it to the window, or our app_server does it all wrong (temporary work-around). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13225 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/screen/MonitorView.cpp | 4 ++++ src/prefs/screen/ScreenWindow.cpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/prefs/screen/MonitorView.cpp b/src/prefs/screen/MonitorView.cpp index 0a85ea0253..8007b56dae 100644 --- a/src/prefs/screen/MonitorView.cpp +++ b/src/prefs/screen/MonitorView.cpp @@ -84,6 +84,8 @@ MonitorView::Draw(BRect updateRect) rgb_color redColor = {228, 0, 0, 255}; BRect outerRect = MonitorBounds(); + SetDrawingMode(B_OP_OVER); + // frame & background SetHighColor(darkColor); @@ -100,6 +102,8 @@ MonitorView::Draw(BRect updateRect) SetHighColor(blackColor); StrokeRoundRect(innerRect, 2.0, 2.0); + SetDrawingMode(B_OP_COPY); + // power light SetHighColor(redColor); diff --git a/src/prefs/screen/ScreenWindow.cpp b/src/prefs/screen/ScreenWindow.cpp index 0859343703..c41f7ea8d6 100644 --- a/src/prefs/screen/ScreenWindow.cpp +++ b/src/prefs/screen/ScreenWindow.cpp @@ -371,13 +371,14 @@ ScreenWindow::ScreenWindow(ScreenSettings *Settings) } rect.Set(15, 114, 171, 132); - menuField = new BMenuField(rect, "TVStandard", "Video Format:", + menuField = new BMenuField(rect, "tv standard", "Video Format:", fTVStandardMenu, true); menuField->SetDivider(73); - controlsBox->AddChild(menuField); if (!tvStandardSupport || i == 0) menuField->Hide(); + + controlsBox->AddChild(menuField); } rect.Set(10.0, 167, 100.0, 200.0);