Skip to content

Commit

Permalink
add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 15, 2024
1 parent 0905cb8 commit 091a8c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,8 @@ UINT WINAPI fake_GetSystemPaletteEntries(HDC hdc, UINT iStart, UINT cEntries, LP

if (g_ddraw.ref && g_ddraw.bpp == 8 && pPalEntries && WindowFromDC(hdc) == g_ddraw.hwnd)
{
TRACE(" WindowFromDC(hdc) == g_ddraw.hwnd\n");

if (g_ddraw.primary && g_ddraw.primary->palette)
{
ddp_GetEntries(g_ddraw.primary->palette, 0, iStart, cEntries, pPalEntries);
Expand Down

0 comments on commit 091a8c1

Please sign in to comment.