Skip to content

Commit

Permalink
fix for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 14, 2024
1 parent 82d3ec4 commit 06aadb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,6 @@ UINT WINAPI fake_GetSystemPaletteEntries(HDC hdc, UINT iStart, UINT cEntries, LP
{
TRACE("ddp_GetEntries test\n");
ddp_GetEntries(g_ddraw.primary->palette, 0, iStart, cEntries, pPalEntries);
return cEntries - iStart;
}
else
{
Expand All @@ -1369,6 +1368,8 @@ UINT WINAPI fake_GetSystemPaletteEntries(HDC hdc, UINT iStart, UINT cEntries, LP
pPalEntries[x].peFlags = g_ddp_me_palette[i].peFlags;
}
}

return cEntries - iStart;
}

return real_GetSystemPaletteEntries(hdc, iStart, cEntries, pPalEntries);
Expand Down

0 comments on commit 06aadb7

Please sign in to comment.