|
|
@@ -57,7 +57,7 @@ extern "C" pipi_image_t *pipi_load_gdiplus(const char *name) |
|
|
|
Gdiplus::BitmapData bdata; |
|
|
|
Gdiplus::Rect rect(0, 0, b->GetWidth(), b->GetHeight()); |
|
|
|
|
|
|
|
if(b->LockBits(rect, Gdiplus::ImageLockModeRead, |
|
|
|
if(b->LockBits(&rect, Gdiplus::ImageLockModeRead, |
|
|
|
PixelFormat32bppARGB, &bdata) != Gdiplus::Ok) |
|
|
|
{ |
|
|
|
delete b; |
|
|
@@ -129,7 +129,7 @@ extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name) |
|
|
|
Gdiplus::BitmapData bdata; |
|
|
|
Gdiplus::Rect rect(0, 0, img->w, img->h); |
|
|
|
|
|
|
|
if(b->LockBits(rect, (unsigned int)Gdiplus::ImageLockModeWrite, |
|
|
|
if(b->LockBits(&rect, (unsigned int)Gdiplus::ImageLockModeWrite, |
|
|
|
PixelFormat32bppARGB, &bdata) != Gdiplus::Ok) |
|
|
|
{ |
|
|
|
delete b; |
|
|
|