millorat printWithDots() i Resource::List per a calcular el nom de fitxer mes llarg correctament
Some checks failed
Release / build-windows (push) Has been cancelled
Release / create-release (push) Has been cancelled
Release / build-linux (push) Has been cancelled

This commit is contained in:
2025-11-23 22:18:41 +01:00
parent 1a6185b3aa
commit 59e6af62ba
10 changed files with 45 additions and 17 deletions

View File

@@ -9,7 +9,8 @@
#include <utility>
#include <vector> // Para vector
#include "utils/utils.hpp" // Para getFileName, ColorRGB, printWithDots
#include "core/resources/resource_list.hpp" // Para Resource::List::get()->getPrintWidth
#include "utils/utils.hpp" // Para getFileName, ColorRGB, printWithDots
#define STB_IMAGE_IMPLEMENTATION
#include "external/stb_image.h" // para stbi_failure_reason, stbi_image_free
@@ -51,7 +52,7 @@ auto Texture::loadFromFile(const std::string& file_path) -> bool {
std::cerr << "Error: Fichero no encontrado " << getFileName(file_path) << '\n';
throw std::runtime_error("Fichero no encontrado: " + getFileName(file_path));
}
printWithDots("Image : ", getFileName(file_path), "[ LOADED ]");
printWithDots("Image : ", getFileName(file_path), "[ LOADED ]", Resource::List::get()->getPrintWidth());
int pitch;
SDL_PixelFormat pixel_format;