X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ef3a57a47f840adea9d38bc11cb30689a0838a..80a779275ae04443c568dca919adb26cf6f5002c:/src/mac/carbon/palette.cpp?ds=inline diff --git a/src/mac/carbon/palette.cpp b/src/mac/carbon/palette.cpp index 642af2b89b..cb5ca9487b 100644 --- a/src/mac/carbon/palette.cpp +++ b/src/mac/carbon/palette.cpp @@ -107,5 +107,14 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi return true; } +int wxPalette::GetColoursCount() const +{ + if (m_refData) + return M_PALETTEDATA->m_count; + + return 0; +} + + #endif // wxUSE_PALETTE