From 00c81869c5fb67fcba61b5d41efb7081e6aec874 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 21 Jun 2008 23:51:37 +0000 Subject: [PATCH] Fix obviously swapped if statement checking for a solid pattern. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26071 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../app/drawing/Painter/drawing_modes/PixelFormat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/app/drawing/Painter/drawing_modes/PixelFormat.cpp b/src/servers/app/drawing/Painter/drawing_modes/PixelFormat.cpp index 6051bbb11a..8af27134b0 100644 --- a/src/servers/app/drawing/Painter/drawing_modes/PixelFormat.cpp +++ b/src/servers/app/drawing/Painter/drawing_modes/PixelFormat.cpp @@ -136,15 +136,15 @@ PixelFormat::SetDrawingMode(drawing_mode mode, source_alpha alphaSrcMode, // which have the current low color case B_OP_OVER: if (fPatternHandler->IsSolid()) { - fBlendPixel = blend_pixel_over; - fBlendHLine = blend_hline_over; - fBlendSolidHSpan = blend_solid_hspan_over; - fBlendSolidVSpan = blend_solid_vspan_over; - } else { fBlendPixel = blend_pixel_over_solid; fBlendHLine = blend_hline_over_solid; fBlendSolidHSpan = blend_solid_hspan_over_solid; fBlendSolidVSpan = blend_solid_vspan_over_solid; + } else { + fBlendPixel = blend_pixel_over; + fBlendHLine = blend_hline_over; + fBlendSolidHSpan = blend_solid_hspan_over; + fBlendSolidVSpan = blend_solid_vspan_over; } fBlendColorHSpan = blend_color_hspan_over; break;