mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
image background
This commit is contained in:
parent
06be7915d8
commit
1a1a44be39
@ -484,6 +484,8 @@ void MyLibraryActivity::renderRecentAsBookCoverList() const {
|
|||||||
if (SdMan.openFileForRead("MYLIB", coverBmpPath, file)) {
|
if (SdMan.openFileForRead("MYLIB", coverBmpPath, file)) {
|
||||||
Bitmap bitmap(file);
|
Bitmap bitmap(file);
|
||||||
if (bitmap.parseHeaders() == BmpReaderError::Ok) {
|
if (bitmap.parseHeaders() == BmpReaderError::Ok) {
|
||||||
|
// draw white rect for image background
|
||||||
|
renderer.fillRect(LEFT_MARGIN - 1, y - 1, coverWidth + 2, itemHeight - 10 + 2, false);
|
||||||
renderer.drawBitmap(bitmap, LEFT_MARGIN, y, coverWidth, itemHeight - 10);
|
renderer.drawBitmap(bitmap, LEFT_MARGIN, y, coverWidth, itemHeight - 10);
|
||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user