diff options
author | nyamatongwe <devnull@localhost> | 2006-02-23 02:31:25 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-02-23 02:31:25 +0000 |
commit | 89cb4070bf10f7143df9a40aed89693b029f7e2e (patch) | |
tree | 6169e042aa49317249f439aaada082a5976e8cb0 /include/Platform.h | |
parent | e25bffcb73bd4d598b64f191cb9a33dce9f533b7 (diff) | |
download | scintilla-mirror-89cb4070bf10f7143df9a40aed89693b029f7e2e.tar.gz |
Made number of colours in a palette dynamic so that large numbers of
colours will work.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 7 |
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; |