From a907e70198f1ebb60e98637caedd3208ba953b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 14 Sep 2006 17:57:37 +0000 Subject: [PATCH] * a hack to support transparent CMAP8 color in bitmaps (this would fix the white background on disabled looking icons if Tracker would still use B_CMAP8 icons) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18840 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../app/drawing/Painter/drawing_modes/DrawingModeBlend.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/servers/app/drawing/Painter/drawing_modes/DrawingModeBlend.h b/src/servers/app/drawing/Painter/drawing_modes/DrawingModeBlend.h index a438c3822c..7b706a5123 100644 --- a/src/servers/app/drawing/Painter/drawing_modes/DrawingModeBlend.h +++ b/src/servers/app/drawing/Painter/drawing_modes/DrawingModeBlend.h @@ -133,7 +133,8 @@ blend_color_hspan_blend(int x, int y, unsigned len, if (covers) { // non-solid opacity do { - if (*covers) { +// if (*covers) { +if (*covers && (colors->a & 0xff)) { if (*covers == 255) { ASSIGN_BLEND(p, colors->r, colors->g, colors->b); } else { @@ -148,7 +149,9 @@ blend_color_hspan_blend(int x, int y, unsigned len, // solid full opcacity if (cover == 255) { do { +if (colors->a & 0xff) { ASSIGN_BLEND(p, colors->r, colors->g, colors->b); +} p += 4; ++colors; } while(--len);