mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Correct check for lighting support (#1486)
This commit is contained in:
@@ -1303,7 +1303,7 @@ void LegoBackgroundColor::ToggleSkyColor()
|
||||
// FUNCTION: BETA10 0x10086984
|
||||
void LegoBackgroundColor::SetLightColor(float p_r, float p_g, float p_b)
|
||||
{
|
||||
if (!VideoManager()->GetVideoParam().Flags().GetF2bit0()) {
|
||||
if (!VideoManager()->GetVideoParam().Flags().GetLacksLightSupport()) {
|
||||
// TODO: Computed constants based on what?
|
||||
p_r *= 1. / 0.23;
|
||||
p_g *= 1. / 0.63;
|
||||
|
@@ -126,13 +126,13 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
||||
m_direct3d->SetDevice(deviceEnumerate, driver, device);
|
||||
|
||||
if (!driver->m_ddCaps.dwCaps2 && driver->m_ddCaps.dwSVBRops[7] != 2) {
|
||||
p_videoParam.Flags().SetF2bit0(TRUE);
|
||||
p_videoParam.Flags().SetLacksLightSupport(TRUE);
|
||||
}
|
||||
else {
|
||||
p_videoParam.Flags().SetF2bit0(FALSE);
|
||||
p_videoParam.Flags().SetLacksLightSupport(FALSE);
|
||||
}
|
||||
|
||||
ViewROI::SetUnk101013d8(p_videoParam.Flags().GetF2bit0() == FALSE);
|
||||
ViewROI::SetUnk101013d8(p_videoParam.Flags().GetLacksLightSupport() == FALSE);
|
||||
|
||||
if (!m_direct3d->Create(
|
||||
hwnd,
|
||||
|
Reference in New Issue
Block a user