- Explicitly initialize structures.

- Fixed strange code probably caused by a merge conflict.
This commit is contained in:
Patrik Stridvall 2000-10-24 02:20:31 +00:00 committed by Alexandre Julliard
parent 0282825f63
commit f87b96e711
1 changed files with 3 additions and 4 deletions

View File

@ -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++) {