mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
add default
This commit is contained in:
parent
fc44b8f9ed
commit
423fc12718
@ -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())) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user