mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 15:17:37 +03:00
style: fix formatting issues in cover generation code
This commit is contained in:
parent
5671b05d04
commit
6d6559022c
@ -484,7 +484,9 @@ bool Epub::generateCoverHomeBmp() const {
|
|||||||
// Calculate proportional width for 400px height
|
// Calculate proportional width for 400px height
|
||||||
const int targetWidth = (400 * jpegWidth) / jpegHeight;
|
const int targetWidth = (400 * jpegWidth) / jpegHeight;
|
||||||
|
|
||||||
const bool success = JpegToBmpConverter::jpegFileTo1BitBmpStreamWithSize(coverJpg, homeBmp, targetWidth, HOME_TARGET_HEIGHT);
|
const bool success =
|
||||||
|
JpegToBmpConverter::jpegFileTo1BitBmpStreamWithSize(coverJpg, homeBmp, targetWidth,
|
||||||
|
HOME_TARGET_HEIGHT);
|
||||||
coverJpg.close();
|
coverJpg.close();
|
||||||
homeBmp.close();
|
homeBmp.close();
|
||||||
SdMan.remove(coverJpgTempPath.c_str());
|
SdMan.remove(coverJpgTempPath.c_str());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user