aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-02-23 02:31:25 +0000
committernyamatongwe <unknown>2006-02-23 02:31:25 +0000
commit08a99417d3d6239c5b3ee701dae9d51dfa023097 (patch)
tree6169e042aa49317249f439aaada082a5976e8cb0 /include/Platform.h
parentf29a50577d971cdb6b0bcef075d56906f51599a3 (diff)
downloadscintilla-mirror-08a99417d3d6239c5b3ee701dae9d51dfa023097.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.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;