- Explicitly initialize structures.
- Fixed strange code probably caused by a merge conflict.
diff --git a/objects/palette.c b/objects/palette.c
index 046fe31..6bc21d1 100644
--- a/objects/palette.c
+++ b/objects/palette.c
@@ -162,12 +162,11 @@
WORD Version;
WORD NumberOfEntries;
PALETTEENTRY aEntries[256];
- } Palette = {
- 0x300, 256
- };
+ } Palette;
+ Palette.Version = 0x300;
+ Palette.NumberOfEntries = 256;
GetSystemPaletteEntries(hdc, 0, 256, Palette.aEntries);
- return CreatePalette((LOGPALETTE *)&Palette);
for (r = 0; r < 6; r++) {
for (g = 0; g < 6; g++) {