Skip to content

Commit

Permalink
Fix previous check-in SetDisplayFormat()
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Nov 15, 2024
1 parent 74cfddd commit 33dbee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7326
#define BUILD_NUMBER 7327
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ HRESULT m_IDirectDrawX::GetDisplayMode2(LPDDSURFACEDESC2 lpDDSurfaceDesc2)
{
lpDDSurfaceDesc2->ddpfPixelFormat = DisplayPixelFormat;
}
else if (SetDisplayFormat(lpDDSurfaceDesc2->ddpfPixelFormat, displayModeBits))
else if (!SetDisplayFormat(lpDDSurfaceDesc2->ddpfPixelFormat, displayModeBits))
{
LOG_LIMIT(100, __FUNCTION__ << " Error: Not implemented bit count " << displayModeBits);
return DDERR_UNSUPPORTED;
Expand Down

0 comments on commit 33dbee7

Please sign in to comment.