diff options
Diffstat (limited to 'vcl/source/filter/jpeg')
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx index 46c8ef365071..82d1279c1ba9 100644 --- a/vcl/source/filter/jpeg/JpegReader.cxx +++ b/vcl/source/filter/jpeg/JpegReader.cxx @@ -242,7 +242,7 @@ Graphic JPEGReader::CreateIntermediateGraphic(long nLines) if (!mnLastLines) { mpIncompleteAlpha.reset(new Bitmap(aSizePixel, 1)); - mpIncompleteAlpha->Erase(Color(COL_WHITE)); + mpIncompleteAlpha->Erase(COL_WHITE); } if (nLines && (nLines < aSizePixel.Height())) @@ -253,7 +253,7 @@ Graphic JPEGReader::CreateIntermediateGraphic(long nLines) { { Bitmap::ScopedWriteAccess pAccess(*mpIncompleteAlpha); - pAccess->SetFillColor(Color(COL_BLACK)); + pAccess->SetFillColor(COL_BLACK); pAccess->FillRect(tools::Rectangle(Point(0, mnLastLines), Size(pAccess->Width(), nNewLines))); } |