diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-31 09:20:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-31 09:20:34 +0000 |
commit | 6cf883c29090d7caf9e1a5546309f1bf087b0bd8 (patch) | |
tree | c2eb0d723a4eec23a931aaeb7513d151ee6f9cda /vcl | |
parent | ede60a762baad7f8b789c156407f65ef9093e08e (diff) |
ofz: speed up jpg fuzzer a tad
Change-Id: Ie44698565865b3aacc1ebd0a3e41d5001bf8e09a
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bmpacc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx index e279ea7d0857..858e9b2f542f 100644 --- a/vcl/source/gdi/bmpacc.cxx +++ b/vcl/source/gdi/bmpacc.cxx @@ -431,9 +431,9 @@ void BitmapWriteAccess::CopyScanline( long nY, ConstScanline aSrcScanline, if( pFncGetPixel ) { const ColorMask aDummyMask; - - for( long nX = 0, nWidth = mpBuffer->mnWidth; nX < nWidth; nX++ ) - SetPixel( nY, nX, pFncGetPixel( aSrcScanline, nX, aDummyMask ) ); + Scanline pScanline = GetScanline(nY); + for (long nX = 0, nWidth = mpBuffer->mnWidth; nX < nWidth; ++nX) + SetPixelOnData(pScanline, nX, pFncGetPixel(aSrcScanline, nX, aDummyMask)); } } } |