Pasaeta de include-what-you-use
This commit is contained in:
@@ -62,7 +62,6 @@ bool Texture::loadFromFile(const std::string &path)
|
||||
if (!data)
|
||||
{
|
||||
#ifdef VERBOSE
|
||||
const std::string file_name = path.substr(path.find_last_of("\\/") + 1);
|
||||
std::cout << "Loading image failed: " << stbi_failure_reason() << std::endl;
|
||||
#endif
|
||||
exit(1);
|
||||
@@ -240,14 +239,14 @@ SDL_Texture *Texture::getSDLTexture()
|
||||
}
|
||||
|
||||
// Crea una nueva surface
|
||||
Surface Texture::newSurface(int w, int h)
|
||||
/*Surface Texture::newSurface(int w, int h)
|
||||
{
|
||||
Surface surf = static_cast<Surface>(malloc(sizeof(surface_s)));
|
||||
surf->w = w;
|
||||
surf->h = h;
|
||||
surf->data = static_cast<Uint8 *>(malloc(w * h));
|
||||
return surf;
|
||||
}
|
||||
}*/
|
||||
|
||||
// Elimina una surface
|
||||
void Texture::deleteSurface(Surface surface)
|
||||
@@ -345,7 +344,7 @@ std::vector<Uint32> Texture::loadPal(const std::string &file_name)
|
||||
fread(buffer, size, 1, f);
|
||||
fclose(f);
|
||||
|
||||
const auto pal = LoadPalette(buffer);
|
||||
const auto *pal = LoadPalette(buffer);
|
||||
if (!pal)
|
||||
{
|
||||
return palette;
|
||||
|
||||
Reference in New Issue
Block a user