aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 9ff15013c..395ebf83d 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -236,12 +236,15 @@ class Window; // Forward declaration for Palette
*/
class Palette {
int used;
- enum {numEntries = 100};
- ColourPair entries[numEntries];
+ int size;
+ ColourPair *entries;
#if PLAT_GTK
void *allocatedPalette; // GdkColor *
int allocatedLen;
#endif
+ // Private so Palette objects can not be copied
+ Palette(const Palette &) {}
+ Palette &operator=(const Palette &) { return *this; }
public:
#if PLAT_WIN
void *hpal;