From 7e96e63a2003891c4bada3366c16d606404c235b Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Tue, 2 May 2006 14:50:16 +0000 Subject: [PATCH] added (fixed for now) enabling colorkeying and hor.and ver. filtering. Temporary, until SetViewOverlay()'s 'options' gets feeded here. The setting now in use should be perfectly safe and fixes the clipping and cursor (aparant) problems while using overlay on most gfx drivers. Axel, please review and update as needed ;-). Hope you don't mind this workaround for now.. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17297 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/AccelerantHWInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/servers/app/drawing/AccelerantHWInterface.cpp b/src/servers/app/drawing/AccelerantHWInterface.cpp index 713a453290..62a9caac1c 100644 --- a/src/servers/app/drawing/AccelerantHWInterface.cpp +++ b/src/servers/app/drawing/AccelerantHWInterface.cpp @@ -809,6 +809,10 @@ AccelerantHWInterface::UpdateOverlay(Overlay* overlay) window.green.mask = 0xff; window.blue.mask = 0xff; window.alpha.mask = 0xff; + // TODO: we need the 'uint32 options' from BView::SetViewOverlay() here + // for now using commonly used settings (should be 'safe') + window.flags = + B_OVERLAY_COLOR_KEY | B_OVERLAY_VERTICAL_FILTERING | B_OVERLAY_HORIZONTAL_FILTERING; fAccConfigureOverlay(overlay->OverlayToken(), buffer, &window, &view); }