clang warnings fix + minor refactor

This commit is contained in:
MihailRis
2024-04-15 12:16:04 +03:00
parent 3ebd8f3062
commit adf54b8a38
8 changed files with 53 additions and 49 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ assetload::postfunc assetload::font(
for (size_t i = 0; i <= 4; i++) {
std::string name = filename + "_" + std::to_string(i) + ".png";
name = paths->find(name).string();
pages->push_back(std::move(imageio::read(name)));
pages->push_back(imageio::read(name));
}
return [=](auto assets) {
int res = pages->at(0)->getHeight() / 16;