mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
Update mxpalette.cpp
This commit is contained in:
parent
1b53ef0d95
commit
7a8c18ca44
@ -22,8 +22,8 @@ void MxPalette::ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries)
|
|||||||
{
|
{
|
||||||
// FIXME: incomplete
|
// FIXME: incomplete
|
||||||
HDC hdc = GetDC(NULL);
|
HDC hdc = GetDC(NULL);
|
||||||
MxU32 rastercaps = GetDeviceCaps(hdc, RASTERCAPS);
|
int rastercaps = GetDeviceCaps(hdc, RASTERCAPS);
|
||||||
MxS32 sizepalettecaps;
|
int sizepalettecaps;
|
||||||
if ((rastercaps & RC_PALETTE) != 0) {
|
if ((rastercaps & RC_PALETTE) != 0) {
|
||||||
sizepalettecaps = GetDeviceCaps(hdc, SIZEPALETTE);
|
sizepalettecaps = GetDeviceCaps(hdc, SIZEPALETTE);
|
||||||
if(sizepalettecaps = 256) {
|
if(sizepalettecaps = 256) {
|
||||||
@ -70,7 +70,7 @@ MxResult MxPalette::SetSkyColor(LPPALETTEENTRY p_entries)
|
|||||||
void MxPalette::GetDefaultPalette(LPPALETTEENTRY p_entries)
|
void MxPalette::GetDefaultPalette(LPPALETTEENTRY p_entries)
|
||||||
{
|
{
|
||||||
HDC hdc = GetDC((HWND) NULL);
|
HDC hdc = GetDC((HWND) NULL);
|
||||||
MxS32 rasterCaps = GetDeviceCaps(hdc, RASTERCAPS);
|
int rasterCaps = GetDeviceCaps(hdc, RASTERCAPS);
|
||||||
LPPALETTEENTRY src;
|
LPPALETTEENTRY src;
|
||||||
MxS32 count;
|
MxS32 count;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user