From 2ade87ffe73ae76c81c5e9c03c0e998fe8e1775f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 14 Mar 2009 09:25:13 +0000 Subject: [PATCH] Temporary fix for the ugly drag bitmaps when dragging icons from the Desktop. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29509 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/TextWidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index 58fdfe748f..d53f0dcf20 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -513,7 +513,12 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, float, BPoseView *view, const char* fittingText = fText->FittingText(view); #ifdef __HAIKU__ - if (!selected && view->WidgetTextOutline()) { + // TODO: Comparing view and drawView here to avoid rendering + // the text outline when producing a drag bitmap. The check is + // not fully correct, since an offscreen view is also used in some + // other rare cases (something to do with columns). But for now, this + // fixes the broken drag bitmaps when dragging icons from the Desktop. + if (!selected && view == drawView && view->WidgetTextOutline()) { // draw a halo around the text by using the "false bold" // feature for text rendering. Either black or white is used for // the glow (whatever acts as contrast) with a some alpha value,