formatting
This commit is contained in:
parent
9fa69dbad6
commit
22540ec02d
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,8 @@ bool SaveIconToFile(const char* path, QImage image) {
|
|||
iconFile.write(reinterpret_cast<const char*>(&bmih), sizeof(BITMAPINFOHEADER));
|
||||
|
||||
for (int y = 0; y < image.height(); y++) {
|
||||
auto line = reinterpret_cast<const char*>(sourceImage.scanLine(sourceImage.height() - 1 - y));
|
||||
auto line =
|
||||
reinterpret_cast<const char*>(sourceImage.scanLine(sourceImage.height() - 1 - y));
|
||||
iconFile.write(line, sourceImage.width() * bytesPerPixel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue