mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Correct enums in mxdirectdraw.cpp (#1490)
This commit is contained in:
@@ -164,19 +164,19 @@ BOOL MxDirectDraw::SetPaletteEntries(const PALETTEENTRY* pPaletteEntries, int pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
m_paletteEntries[i].peFlags = 0x80;
|
m_paletteEntries[i].peFlags = D3DPAL_RESERVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; i < 142; i++) {
|
for (; i < 142; i++) {
|
||||||
m_paletteEntries[i].peFlags = 0x44;
|
m_paletteEntries[i].peFlags = D3DPAL_READONLY | PC_NOCOLLAPSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; i < 246; i++) {
|
for (; i < 246; i++) {
|
||||||
m_paletteEntries[i].peFlags = 0x84;
|
m_paletteEntries[i].peFlags = D3DPAL_RESERVED | PC_NOCOLLAPSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; i < 256; i++) {
|
for (; i < 256; i++) {
|
||||||
m_paletteEntries[i].peFlags = 0x80;
|
m_paletteEntries[i].peFlags = D3DPAL_RESERVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paletteEntryCount != 0) {
|
if (paletteEntryCount != 0) {
|
||||||
@@ -561,10 +561,10 @@ void MxDirectDraw::FUN_1009e020()
|
|||||||
memset(&ddsd, 0, sizeof(ddsd));
|
memset(&ddsd, 0, sizeof(ddsd));
|
||||||
ddsd.dwSize = sizeof(ddsd);
|
ddsd.dwSize = sizeof(ddsd);
|
||||||
|
|
||||||
result = m_pBackBuffer->Lock(NULL, &ddsd, 1, NULL);
|
result = m_pBackBuffer->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
|
||||||
if (result == DDERR_SURFACELOST) {
|
if (result == DDERR_SURFACELOST) {
|
||||||
m_pBackBuffer->Restore();
|
m_pBackBuffer->Restore();
|
||||||
result = m_pBackBuffer->Lock(NULL, &ddsd, 1, NULL);
|
result = m_pBackBuffer->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result != DD_OK) {
|
if (result != DD_OK) {
|
||||||
|
Reference in New Issue
Block a user