Skip to content

Commit

Permalink
use constant for AVIGETFRAMEF_BESTDISPLAYFMT
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 20, 2024
1 parent d83e9e4 commit 9e50a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ LPTOP_LEVEL_EXCEPTION_FILTER WINAPI fake_SetUnhandledExceptionFilter(

PGETFRAME WINAPI fake_AVIStreamGetFrameOpen(PAVISTREAM pavi, LPBITMAPINFOHEADER lpbiWanted)
{
if (g_ddraw.ref && g_ddraw.primary && (!lpbiWanted || (DWORD)lpbiWanted == 1))
if (g_ddraw.ref && g_ddraw.primary && (DWORD)lpbiWanted == AVIGETFRAMEF_BESTDISPLAYFMT)
{
DDBITMAPINFO bmi;
memcpy(&bmi, g_ddraw.primary->bmi, sizeof(DDBITMAPINFO));
Expand Down

0 comments on commit 9e50a4b

Please sign in to comment.