mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 08:11:16 +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
|
||||
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.peBlue = (blue * 255.0);
|
||||
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);
|
||||
void Reset(MxBool p_ignoreSkyColor);
|
||||
LPDIRECTDRAWPALETTE CreateNativePalette();
|
||||
inline void SetOverrideSkyColor(MxBool p_value) { this->m_overrideSkyColor = p_value; }
|
||||
private:
|
||||
LPDIRECTDRAWPALETTE m_palette;
|
||||
PALETTEENTRY m_entries[256]; // 0xc
|
||||
|
||||
@ -29,7 +29,7 @@ class MxVideoManager : public MxMediaManager
|
||||
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
|
||||
inline LPDIRECTDRAW GetDirectDraw() { return this->m_pDirectDraw; }
|
||||
inline MxDisplaySurface *GetDisplaySurface() { return this->m_displaySurface; }
|
||||
private:
|
||||
protected:
|
||||
MxVideoParam m_videoParam;
|
||||
LPDIRECTDRAW m_pDirectDraw;
|
||||
LPDIRECTDRAWSURFACE m_pDDSurface;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user