]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/quantize.cpp
Update header control when wxPropertyGridManager is resized.
[wxWidgets.git] / src / common / quantize.cpp
index cb30f645997a6f3917ddaaa9010c0c6062fd68e5..cbd53cc46838d09712fa128776cccb38ff4409fd 100644 (file)
@@ -1546,7 +1546,7 @@ bool wxQuantize::Quantize(const wxImage& src, wxImage& dest,
 
     if (flags & wxQUANTIZE_FILL_DESTINATION_IMAGE)
     {
-        if (!dest.Ok())
+        if (!dest.IsOk())
             dest.Create(w, h);
 
         imgdt = dest.GetData();
@@ -1621,7 +1621,9 @@ bool wxQuantize::Quantize(const wxImage& src, wxImage& dest,
         delete[] g;
         delete[] b;
     }
-#endif // wxUSE_PALETTE
+#else // !wxUSE_PALETTE
+    wxUnusedVar(pPalette);
+#endif // wxUSE_PALETTE/!wxUSE_PALETTE
 
     return true;
 }