]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bitmap.cpp
removed tab characters; minor code cleanup
[wxWidgets.git] / src / msw / bitmap.cpp
index 86bddb84ca562a07824fd881a0e0effefdda93f5..25fa4bc5c30963ac2a01d019bfa86ae394b543fa 100644 (file)
@@ -789,7 +789,7 @@ bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
     {
         hbitmap = dib.CreateDDB((HDC)hdc);
 
-        refData->m_depth = depth == -1 ? wxDisplayDepth() : depth;
+        refData->m_depth = depth == -1 ? dib.GetDepth() : depth;
     }
 #endif // !ALWAYS_USE_DIB