mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
use sizeof(ddsd) instead
This commit is contained in:
parent
aae1734860
commit
3a8cb2a50c
@ -61,7 +61,7 @@ int MxDirectDraw::GetPrimaryBitDepth()
|
||||
if (!result)
|
||||
{
|
||||
memset(&ddsd, 0, sizeof(ddsd));
|
||||
ddsd.dwSize = 108;
|
||||
ddsd.dwSize = sizeof(ddsd);
|
||||
|
||||
pDDraw->GetDisplayMode(&ddsd);
|
||||
dwRGBBitCount = ddsd.ddpfPixelFormat.dwRGBBitCount;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user