DXGL r376 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r375‎ | r376 | r377 >
Date:00:30, 15 May 2013
Author:admin
Status:new
Tags:
Comment:
Fill in video memory in DDCAPS structure.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -916,6 +916,7 @@
917917 DDSCAPS_FRONTBUFFER | DDSCAPS_OFFSCREENPLAIN | DDSCAPS_PALETTE |
918918 DDSCAPS_SYSTEMMEMORY | DDSCAPS_VIDEOMEMORY | DDSCAPS_3DDEVICE;
919919 ddCaps.dwCKeyCaps = DDCKEYCAPS_SRCBLT;
 920+ GetAvailableVidMem(NULL,&ddCaps.dwVidMemTotal,&ddCaps.dwVidMemFree);
920921 if(lpDDDriverCaps)
921922 {
922923 if(lpDDDriverCaps->dwSize > sizeof(DDCAPS_DX7)) lpDDDriverCaps->dwSize = sizeof(DDCAPS_DX7);