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
This commit is contained in:
Michael Lotz 2008-06-21 23:51:37 +00:00
parent ffa2f65116
commit 00c81869c5

View File

@ -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;