Changeset 3077 for libpipi


Ignore:
Timestamp:
Oct 23, 2008, 6:12:29 PM (12 years ago)
Author:
Sam Hocevar
Message:

Cope with disparities between GDI+ versions.

Location:
libpipi/trunk
Files:
3 edited

Legend:

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

    r3076 r3077  
    5858    Gdiplus::Rect rect(0, 0, b->GetWidth(), b->GetHeight());
    5959
    60     if(b->LockBits(rect, Gdiplus::ImageLockModeRead,
     60    if(b->LockBits(&rect, Gdiplus::ImageLockModeRead,
    6161                   PixelFormat32bppARGB, &bdata) != Gdiplus::Ok)
    6262    {
     
    130130    Gdiplus::Rect rect(0, 0, img->w, img->h);
    131131
    132     if(b->LockBits(rect, (unsigned int)Gdiplus::ImageLockModeWrite,
     132    if(b->LockBits(&rect, (unsigned int)Gdiplus::ImageLockModeWrite,
    133133                   PixelFormat32bppARGB, &bdata) != Gdiplus::Ok)
    134134    {
  • libpipi/trunk/win32/gdiplus/include/GdiplusBitmap.h

    r3072 r3077  
    936936inline Status
    937937Bitmap::LockBits(
    938     IN const Rect& rect,
     938    IN const Rect* rect,
    939939    IN UINT flags,
    940940    IN PixelFormat format,
     
    944944    return SetStatus(DllExports::GdipBitmapLockBits(
    945945                                    static_cast<GpBitmap*>(nativeImage),
    946                                     &rect,
     946                                    rect,
    947947                                    flags,
    948948                                    format,
  • libpipi/trunk/win32/gdiplus/include/GdiplusHeaders.h

    r3072 r3077  
    634634                  IN PixelFormat format);
    635635
    636     Status LockBits(IN const Rect& rect,
     636    Status LockBits(IN const Rect* rect,
    637637                    IN UINT flags,
    638638                    IN PixelFormat format,
Note: See TracChangeset for help on using the changeset viewer.