mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
improved SetSkyColor match
This commit is contained in:
parent
a9fa734844
commit
243e4edb94
@ -48,11 +48,15 @@ void LegoVideoManager::MoveCursor(int x, int y)
|
|||||||
// OFFSET: LEGO1 0x1007c440
|
// OFFSET: LEGO1 0x1007c440
|
||||||
void LegoVideoManager::SetSkyColor(float red, float green, float blue)
|
void LegoVideoManager::SetSkyColor(float red, float green, float blue)
|
||||||
{
|
{
|
||||||
PALETTEENTRY colorStrucure; // [esp+0h] [ebp-4h] BYREF
|
PALETTEENTRY colorStrucure;
|
||||||
|
|
||||||
colorStrucure.peRed = (red* 255.0);
|
colorStrucure.peRed = (red * 255.0);
|
||||||
colorStrucure.peGreen = (green * 255.0);
|
colorStrucure.peGreen = (green * 255.0);
|
||||||
colorStrucure.peBlue = (blue * 255.0);
|
colorStrucure.peBlue = (blue * 255.0);
|
||||||
colorStrucure.peFlags = -124;
|
colorStrucure.peFlags = -124;
|
||||||
// TODO
|
m_videoParam.GetPalette()->SetSkyColor(&colorStrucure);
|
||||||
|
m_videoParam.GetPalette()->SetOverrideSkyColor(TRUE);
|
||||||
|
|
||||||
|
// TODO 3d manager
|
||||||
|
//m_3dManager->
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ class MxPalette : public MxCore
|
|||||||
MxResult SetSkyColor(LPPALETTEENTRY p_sky_color);
|
MxResult SetSkyColor(LPPALETTEENTRY p_sky_color);
|
||||||
void Reset(MxBool p_ignoreSkyColor);
|
void Reset(MxBool p_ignoreSkyColor);
|
||||||
LPDIRECTDRAWPALETTE CreateNativePalette();
|
LPDIRECTDRAWPALETTE CreateNativePalette();
|
||||||
|
inline void SetOverrideSkyColor(MxBool p_value) { this->m_overrideSkyColor = p_value; }
|
||||||
private:
|
private:
|
||||||
LPDIRECTDRAWPALETTE m_palette;
|
LPDIRECTDRAWPALETTE m_palette;
|
||||||
PALETTEENTRY m_entries[256]; // 0xc
|
PALETTEENTRY m_entries[256]; // 0xc
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class MxVideoManager : public MxMediaManager
|
|||||||
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
|
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
|
||||||
inline LPDIRECTDRAW GetDirectDraw() { return this->m_pDirectDraw; }
|
inline LPDIRECTDRAW GetDirectDraw() { return this->m_pDirectDraw; }
|
||||||
inline MxDisplaySurface *GetDisplaySurface() { return this->m_displaySurface; }
|
inline MxDisplaySurface *GetDisplaySurface() { return this->m_displaySurface; }
|
||||||
private:
|
protected:
|
||||||
MxVideoParam m_videoParam;
|
MxVideoParam m_videoParam;
|
||||||
LPDIRECTDRAW m_pDirectDraw;
|
LPDIRECTDRAW m_pDirectDraw;
|
||||||
LPDIRECTDRAWSURFACE m_pDDSurface;
|
LPDIRECTDRAWSURFACE m_pDDSurface;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user