Ignore:
Timestamp:
Oct 23, 2008, 5:44:51 PM (12 years ago)
Author:
Sam Hocevar
Message:

libpipi: improve GDI+ codec cross-compilation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/gdiplus.cpp

    r3074 r3076  
    3434extern "C" pipi_image_t *pipi_load_gdiplus(const char *name)
    3535{
    36 #if 0
    3736    size_t len;
    3837    len = mbstowcs(NULL, name, 0);
    3938    wchar_t *wname = new wchar_t[len + 1];
    40     if(mbstowcs(wname, name, len + 1) != (size_t)-1)
     39    if(mbstowcs(wname, name, len + 1) == (size_t)-1)
    4140    {
    4241        delete[] wname;
     
    7978
    8079    return img;
    81 #endif
    82 return NULL;
    8380}
    8481
    8582extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name)
    8683{
    87 #if 0
    8884    wchar_t const *fmt;
    8985    if(strstr(name, ".gif"))
     
    118114    len = mbstowcs(NULL, name, 0);
    119115    wchar_t *wname = new wchar_t[len + 1];
    120     if(mbstowcs(wname, name, len + 1) != (size_t)-1)
     116    if(mbstowcs(wname, name, len + 1) == (size_t)-1)
    121117    {
    122118        delete[] wname;
     
    155151    delete b;
    156152
    157 #endif
    158153    return 0;
    159154}
Note: See TracChangeset for help on using the changeset viewer.