// Author: Julian Smart
// Modified by:
// Created: 22/6/2000
-// RCS-ID: $Id$
// Copyright: (c) Thomas G. Lane, Vaclav Slavik, Julian Smart
// Licence: wxWindows licence + JPEG library licence
/////////////////////////////////////////////////////////////////////////////
if (flags & wxQUANTIZE_FILL_DESTINATION_IMAGE)
{
- if (!dest.Ok())
+ if (!dest.IsOk())
dest.Create(w, h);
imgdt = dest.GetData();
delete[] g;
delete[] b;
}
-#endif // wxUSE_PALETTE
+#else // !wxUSE_PALETTE
+ wxUnusedVar(pPalette);
+#endif // wxUSE_PALETTE/!wxUSE_PALETTE
return true;
}