Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -123,7 +123,7 @@ IconRenderer::StyleHandler::generate_span(agg::rgba8* span, int x, int y,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Style* style = styleItem->style;
|
Style* style = styleItem->style;
|
||||||
Gradient* gradient = style->Gradient();
|
Gradient* gradient = style->Gradient();
|
||||||
const agg::rgba8* colors = style->GammaCorrectedColors(fGammaTable);
|
const agg::rgba8* colors = style->GammaCorrectedColors(fGammaTable);
|
||||||
|
|
||||||
switch (gradient->Type()) {
|
switch (gradient->Type()) {
|
||||||
@@ -175,8 +175,8 @@ IconRenderer::StyleHandler::_GenerateGradient(agg::rgba8* span, int x, int y,
|
|||||||
{
|
{
|
||||||
typedef agg::pod_auto_array<agg::rgba8, 256> ColorArray;
|
typedef agg::pod_auto_array<agg::rgba8, 256> ColorArray;
|
||||||
typedef agg::span_interpolator_linear<> Interpolator;
|
typedef agg::span_interpolator_linear<> Interpolator;
|
||||||
typedef agg::span_gradient<agg::rgba8,
|
typedef agg::span_gradient<agg::rgba8,
|
||||||
Interpolator,
|
Interpolator,
|
||||||
GradientFunction,
|
GradientFunction,
|
||||||
ColorArray> GradientGenerator;
|
ColorArray> GradientGenerator;
|
||||||
|
|
||||||
@@ -232,8 +232,8 @@ IconRenderer::IconRenderer(BBitmap* bitmap)
|
|||||||
bitmap->Bounds().IntegerWidth() + 1,
|
bitmap->Bounds().IntegerWidth() + 1,
|
||||||
bitmap->Bounds().IntegerHeight() + 1, bitmap->BytesPerRow());
|
bitmap->Bounds().IntegerHeight() + 1, bitmap->BytesPerRow());
|
||||||
|
|
||||||
fBaseRendererPre.clip_box(0, 0, fBitmap->Bounds().IntegerWidth(),
|
fBaseRendererPre.clip_box(0, 0, bitmap->Bounds().IntegerWidth(),
|
||||||
fBitmap->Bounds().IntegerHeight());
|
bitmap->Bounds().IntegerHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
// destructor
|
// destructor
|
||||||
|
|||||||
Reference in New Issue
Block a user