aboutsummaryrefslogtreecommitdiff
path: root/ui/vnc-palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/vnc-palette.h')
-rw-r--r--ui/vnc-palette.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/vnc-palette.h b/ui/vnc-palette.h
index d0645ebde8..f57d0e7405 100644
--- a/ui/vnc-palette.h
+++ b/ui/vnc-palette.h
@@ -34,6 +34,7 @@
#include <stdint.h>
#define VNC_PALETTE_HASH_SIZE 256
+#define VNC_PALETTE_MAX_SIZE 256
typedef struct VncPaletteEntry {
int idx;
@@ -42,7 +43,7 @@ typedef struct VncPaletteEntry {
} VncPaletteEntry;
typedef struct VncPalette {
- QObject_HEAD;
+ VncPaletteEntry pool[VNC_PALETTE_MAX_SIZE];
size_t size;
size_t max;
int bpp;