X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..c4218a74033e3091a3566c9c6619809a00b53744:/src/msw/palette.cpp?ds=sidebyside diff --git a/src/msw/palette.cpp b/src/msw/palette.cpp index 5da71182f1..724140c3aa 100644 --- a/src/msw/palette.cpp +++ b/src/msw/palette.cpp @@ -30,9 +30,7 @@ #include "assert.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject) -#endif /* * Palette @@ -64,7 +62,7 @@ wxPalette::~wxPalette(void) // FreeResource(TRUE); } -bool wxPalette::FreeResource(bool force) +bool wxPalette::FreeResource(bool WXUNUSED(force)) { if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette) { @@ -77,6 +75,12 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre { UnRef(); +#ifdef __WXWINE__ + + return (FALSE); + +#else + m_refData = new wxPaletteRefData; NPLOGPALETTE npPal = (NPLOGPALETTE)LocalAlloc(LMEM_FIXED, sizeof(LOGPALETTE) + @@ -98,6 +102,8 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal); LocalFree((HANDLE)npPal); return TRUE; + +#endif } int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const