diff options
Diffstat (limited to 'vcl/unx/generic/print/bitmap_gfx.cxx')
-rw-r--r-- | vcl/unx/generic/print/bitmap_gfx.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/generic/print/bitmap_gfx.cxx b/vcl/unx/generic/print/bitmap_gfx.cxx index b559b9b1325f..4ddce0214190 100644 --- a/vcl/unx/generic/print/bitmap_gfx.cxx +++ b/vcl/unx/generic/print/bitmap_gfx.cxx @@ -511,9 +511,9 @@ PrinterGfx::DrawPS1GrayImage (const PrinterBmp& rBitmap, const tools::Rectangle& // image body std::unique_ptr<HexEncoder> xEncoder(new HexEncoder (mpPageBody)); - for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) + for (tools::Long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) { - for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) + for (tools::Long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) { unsigned char nByte = rBitmap.GetPixelGray (nRow, nColumn); xEncoder->EncodeByte (nByte); @@ -612,9 +612,9 @@ PrinterGfx::DrawPS2GrayImage (const PrinterBmp& rBitmap, const tools::Rectangle& std::unique_ptr<ByteEncoder> xEncoder(new LZWEncoder(mpPageBody)); - for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) + for (tools::Long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) { - for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) + for (tools::Long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) { unsigned char nByte = rBitmap.GetPixelGray (nRow, nColumn); xEncoder->EncodeByte (nByte); @@ -630,12 +630,12 @@ PrinterGfx::DrawPS2MonoImage (const PrinterBmp& rBitmap, const tools::Rectangle& std::unique_ptr<ByteEncoder> xEncoder(new LZWEncoder(mpPageBody)); - for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) + for (tools::Long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) { - long nBitPos = 0; + tools::Long nBitPos = 0; unsigned char nByte = 0; - for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) + for (tools::Long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) { unsigned char nBit = rBitmap.GetPixelIdx (nRow, nColumn); nByte |= nBit << (7 - nBitPos); @@ -661,9 +661,9 @@ PrinterGfx::DrawPS2PaletteImage (const PrinterBmp& rBitmap, const tools::Rectang std::unique_ptr<ByteEncoder> xEncoder(new LZWEncoder(mpPageBody)); - for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) + for (tools::Long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) { - for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) + for (tools::Long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) { unsigned char nByte = rBitmap.GetPixelIdx (nRow, nColumn); xEncoder->EncodeByte (nByte); @@ -679,9 +679,9 @@ PrinterGfx::DrawPS2TrueColorImage (const PrinterBmp& rBitmap, const tools::Recta std::unique_ptr<ByteEncoder> xEncoder(new LZWEncoder(mpPageBody)); - for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) + for (tools::Long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++) { - for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) + for (tools::Long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++) { PrinterColor aColor = rBitmap.GetPixelRGB (nRow, nColumn); xEncoder->EncodeByte (aColor.GetRed()); |