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