]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/palette.cpp
new renderer architecture
[wxWidgets.git] / src / mac / carbon / palette.cpp
index 642af2b89bbbb2c374a7a901982f6c0ad3099110..cb5ca9487bb33e3b94b07d171aa65249d0824a8d 100644 (file)
@@ -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