image background

This commit is contained in:
Eliz Kilic 2026-01-24 01:22:27 +00:00
parent 06be7915d8
commit 1a1a44be39

View File

@ -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();