ja pinta el logo en tamany 1:1

moguda la logica del main a la classe Logo
This commit is contained in:
2025-04-07 11:55:09 +02:00
parent 149a8216bc
commit a40c9a899b
6 changed files with 112 additions and 69 deletions

View File

@@ -494,7 +494,7 @@ void Surface::copyToTexture(SDL_Renderer *renderer, SDL_Texture *texture)
int pitch = 0;
// Bloquea la textura para modificar los píxeles directamente
if (SDL_LockTexture(texture, nullptr, reinterpret_cast<void **>(&pixels), &pitch) != 0)
if (!SDL_LockTexture(texture, nullptr, reinterpret_cast<void **>(&pixels), &pitch))
{
throw std::runtime_error("Failed to lock texture: " + std::string(SDL_GetError()));
}