Commit f87b96e7 authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

- Explicitly initialize structures.

- Fixed strange code probably caused by a merge conflict.
parent 0282825f
......@@ -162,12 +162,11 @@ HPALETTE WINAPI CreateHalftonePalette(
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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment