add default

This commit is contained in:
Eliz Kilic 2026-01-24 00:14:46 +00:00
parent fc44b8f9ed
commit 423fc12718

View File

@ -297,6 +297,12 @@ std::string Xtc::getThumbBmpPath(int width, int height) const {
return cachePath + "/thumb_" + std::to_string(width) + "x" + std::to_string(height) + ".bmp"; return cachePath + "/thumb_" + std::to_string(width) + "x" + std::to_string(height) + ".bmp";
} }
bool Xtc::generateThumbBmp() const {
constexpr int THUMB_TARGET_WIDTH = 240;
constexpr int THUMB_TARGET_HEIGHT = 400;
return generateThumbBmp(THUMB_TARGET_WIDTH, THUMB_TARGET_HEIGHT);
}
bool Xtc::generateThumbBmp(int width, int height) const { bool Xtc::generateThumbBmp(int width, int height) const {
// Already generated // Already generated
if (SdMan.exists(getThumbBmpPath(width, height).c_str())) { if (SdMan.exists(getThumbBmpPath(width, height).c_str())) {