Changeset 1408


Ignore:
Timestamp:
May 22, 2012, 1:11:41 AM (11 years ago)
Author:
sam
Message:

win32: better error reporting in the GDI+ loader, based on a patch by ponce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/image/codec/gdiplus-image.cpp

    r1207 r1408  
    8282    }
    8383
     84    if (bitmap->GetLastStatus() != Gdiplus::Ok)
     85    {
     86#if !LOL_RELEASE
     87        Log::Error("error %d loading %s\n",
     88                   (unsigned)bitmap->GetLastStatus(), path);
     89#endif
     90        delete bitmap;
     91        return false;
     92    }
     93
    8494    size = ivec2(bitmap->GetWidth(), bitmap->GetHeight());
    8595    format = Image::FORMAT_RGBA;
Note: See TracChangeset for help on using the changeset viewer.