mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Match to ~85%
This commit is contained in:
parent
347e59f942
commit
c3e9de1887
@ -63,9 +63,9 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
|||||||
Vector3Data dirVec(0.0, 0.0, 1.0);
|
Vector3Data dirVec(0.0, 0.0, 1.0);
|
||||||
Vector3Data upVec(0.0, 1.0, 0.0);
|
Vector3Data upVec(0.0, 1.0, 0.0);
|
||||||
Matrix4Data outMatrix;
|
Matrix4Data outMatrix;
|
||||||
|
|
||||||
HWND hwnd = MxOmni::GetInstance()->GetWindowHandle();
|
HWND hwnd = MxOmni::GetInstance()->GetWindowHandle();
|
||||||
MxS32 bits = p_videoParam.Flags().Get16Bit() ? 16 : 8;
|
MxS32 bits = p_videoParam.Flags().Get16Bit() ? 16 : 8;
|
||||||
|
MxS32 und3 = -1;
|
||||||
|
|
||||||
if (!p_videoParam.GetPalette()) {
|
if (!p_videoParam.GetPalette()) {
|
||||||
MxPalette* palette = new MxPalette;
|
MxPalette* palette = new MxPalette;
|
||||||
@ -85,10 +85,15 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
|||||||
if (deviceEnumerate.DoEnumerate() != SUCCESS)
|
if (deviceEnumerate.DoEnumerate() != SUCCESS)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
MxS32 und3;
|
if (p_videoParam.GetDeviceName()) {
|
||||||
// TODO: Match
|
und3 = deviceEnumerate.ParseDeviceName(p_videoParam.GetDeviceName());
|
||||||
if (!p_videoParam.GetDeviceName() || (und3 = deviceEnumerate.ParseDeviceName(p_videoParam.GetDeviceName())) < 0 ||
|
if (und3 >= 0) {
|
||||||
deviceEnumerate.FUN_1009d030(und3, &und1, &und2) != SUCCESS) {
|
if ((und3 = deviceEnumerate.FUN_1009d030(und3, &und1, &und2)) != SUCCESS)
|
||||||
|
und3 = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (und3 < 0) {
|
||||||
deviceEnumerate.FUN_1009d210();
|
deviceEnumerate.FUN_1009d210();
|
||||||
und3 = deviceEnumerate.FUN_1009d0d0();
|
und3 = deviceEnumerate.FUN_1009d0d0();
|
||||||
deviceEnumerate.FUN_1009d030(und3, &und1, &und2);
|
deviceEnumerate.FUN_1009d030(und3, &und1, &und2);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user