- Explicitly initialize structures.
- Fixed strange code probably caused by a merge conflict.
This commit is contained in:
parent
0282825f63
commit
f87b96e711
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue