1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 17:02:48 +02:00

Log surface load failures at DEBUG level instead of ERROR

Since we no longer check file existance before attempting a load,
load failures are often not errors. For example a missing preview
image is harmless.
This commit is contained in:
Maarten ter Huurne 2014-08-16 15:27:30 +02:00
parent d16cb902b3
commit ffb736d80f

View File

@ -295,7 +295,7 @@ unique_ptr<OffscreenSurface> OffscreenSurface::loadImage(
{
SDL_Surface *raw = loadPNG(img, loadAlpha);
if (!raw) {
ERROR("Couldn't load surface '%s'\n", img.c_str());
DEBUG("Couldn't load surface '%s'\n", img.c_str());
return unique_ptr<OffscreenSurface>();
}