Skip to content

Commit

Permalink
log args
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 16, 2024
1 parent 363d54e commit bbe8c4f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ UINT WINAPI fake_GetSystemPaletteEntries(HDC hdc, UINT iStart, UINT cEntries, LP
pPalEntries &&
((g_ddraw.hwnd && WindowFromDC(hdc) == g_ddraw.hwnd) || WindowFromDC(hdc) == GetDesktopWindow()))
{
TRACE(" WindowFromDC(hdc) == g_ddraw.hwnd\n");
TRACE(" Display DC\n");

if (g_ddraw.primary && g_ddraw.primary->palette)
{
Expand Down Expand Up @@ -1431,7 +1431,13 @@ HPALETTE WINAPI fake_SelectPalette(HDC hdc, HPALETTE hPal, BOOL bForceBkgd)
{
if (g_ddraw.primary && g_ddraw.primary->palette)
{
TRACE_EXT("%s [%p]\n", __FUNCTION__, _ReturnAddress());
TRACE_EXT(
"%s(hdc=%p, hPal=%p, bForceBkgd=%d) [%p]\n",
__FUNCTION__,
hdc,
hPal,
bForceBkgd,
_ReturnAddress());

g_ddraw.primary->selected_pal_count = GetPaletteEntries(hPal, 0, 256, g_ddraw.primary->selected_pal);

Expand All @@ -1450,7 +1456,7 @@ UINT WINAPI fake_RealizePalette(HDC hdc)
{
if (g_ddraw.primary && g_ddraw.primary->palette)
{
TRACE_EXT("%s [%p]\n", __FUNCTION__, _ReturnAddress());
TRACE_EXT("%s(hdc=%p) [%p]\n", __FUNCTION__, hdc, _ReturnAddress());

ddp_SetEntries(
g_ddraw.primary->palette,
Expand Down

0 comments on commit bbe8c4f

Please sign in to comment.