DXGL r253 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r252‎ | r253 | r254 >
Date:19:19, 2 September 2012
Author:admin
Status:new
Tags:
Comment:
Initialize size of pixel format structure in EnumDisplayModes
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -337,6 +337,7 @@
338338 ZeroMemory(&ddmode,sizeof(DDSURFACEDESC));
339339 ddmode.dwSize = sizeof(DDSURFACEDESC);
340340 ddmode.dwFlags = DDSD_HEIGHT | DDSD_WIDTH | DDSD_PITCH | DDSD_PIXELFORMAT | DDSD_REFRESHRATE;
 341+ ddmode.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
341342 while(EnumDisplaySettings(NULL,modenum++,&mode))
342343 {
343344 modes[modenum-1] = mode;