mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
fix crash in QImage conversion benchmark
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
69201d3b64
commit
e9ab364014
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ void tst_QImageConversion::convertRgb16ToRGB32()
|
|||
QImage tst_QImageConversion::generateImage(int width, int height)
|
||||
{
|
||||
QImage image(width, height, QImage::Format_RGB16);
|
||||
const int byteWidth = width * 3;
|
||||
const int byteWidth = width * 2;
|
||||
|
||||
for (int y = 0; y < image.height(); ++y) {
|
||||
uchar *scanline = image.scanLine(y);
|
||||
|
|
Loading…
Add table
Reference in a new issue