]> git.saurik.com Git - wxWidgets.git/commitdiff
Use premultiplied alpha pixel format to match what is used everywhere else in wxMSW.
authorRobin Dunn <robin@alldunn.com>
Tue, 23 Oct 2007 21:36:13 +0000 (21:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 23 Oct 2007 21:36:13 +0000 (21:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/graphics.cpp

index a637adf8c4b0d6627ab73cc037b3d7dc175a912a..ba6e529f1256c269b1a7dd43f52f2d27921488a9 100644 (file)
@@ -1043,7 +1043,7 @@ void wxGDIPlusContext::DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y,
                 helper->GetPixelFormat(),&data);
 
             image = new Bitmap(data.Width, data.Height, data.Stride,
-                PixelFormat32bppARGB , (BYTE*) data.Scan0);
+                PixelFormat32bppPARGB , (BYTE*) data.Scan0);
 
             helper->UnlockBits(&data);
         }