DXGL r920 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r919‎ | r920 | r921 >
Date:15:36, 10 May 2019
Author:admin
Status:new
Tags:
Comment:
Temporarily remove advertising overlay support.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1470,9 +1470,9 @@
14711471 if(ddCaps.dwSize > sizeof(DDCAPS_DX7)) ddCaps.dwSize = sizeof(DDCAPS_DX7);
14721472 if (ddCaps.dwSize < sizeof(DDCAPS_DX3)) TRACE_RET(HRESULT, 23, DDERR_INVALIDPARAMS);
14731473 ddCaps.dwCaps = DDCAPS_BLT | DDCAPS_BLTCOLORFILL | DDCAPS_BLTDEPTHFILL | DDCAPS_BLTFOURCC |
1474 - DDCAPS_BLTSTRETCH | DDCAPS_COLORKEY | DDCAPS_GDI | DDCAPS_PALETTE | DDCAPS_CANBLTSYSMEM |
1475 - DDCAPS_3D | DDCAPS_CANCLIP | DDCAPS_CANCLIPSTRETCHED | DDCAPS_READSCANLINE |
1476 - DDCAPS_OVERLAY | DDCAPS_OVERLAYSTRETCH;
 1474+ DDCAPS_BLTSTRETCH | DDCAPS_COLORKEY | DDCAPS_GDI | DDCAPS_PALETTE | DDCAPS_CANBLTSYSMEM |
 1475+ DDCAPS_3D | DDCAPS_CANCLIP | DDCAPS_CANCLIPSTRETCHED | DDCAPS_READSCANLINE;/* |
 1476+ DDCAPS_OVERLAY | DDCAPS_OVERLAYSTRETCH;*/
14771477 ddCaps.dwCaps2 = DDCAPS2_CANRENDERWINDOWED | DDCAPS2_WIDESURFACES | DDCAPS2_NOPAGELOCKREQUIRED |
14781478 DDCAPS2_FLIPINTERVAL | DDCAPS2_FLIPNOVSYNC | DDCAPS2_NONLOCALVIDMEM;
14791479 ddCaps.dwFXCaps = DDFXCAPS_BLTSHRINKX | DDFXCAPS_BLTSHRINKY |
@@ -1485,10 +1485,10 @@
14861486 DDSCAPS_FRONTBUFFER | DDSCAPS_OFFSCREENPLAIN | DDSCAPS_PALETTE |
14871487 DDSCAPS_SYSTEMMEMORY | DDSCAPS_VIDEOMEMORY | DDSCAPS_3DDEVICE |
14881488 DDSCAPS_NONLOCALVIDMEM | DDSCAPS_LOCALVIDMEM | DDSCAPS_TEXTURE |
1489 - DDSCAPS_MIPMAP | DDSCAPS_OVERLAY;
 1489+ DDSCAPS_MIPMAP;// | DDSCAPS_OVERLAY;
14901490 ddCaps.ddsCaps.dwCaps2 = DDSCAPS2_MIPMAPSUBLEVEL;
1491 - ddCaps.dwMinOverlayStretch = 1;
1492 - ddCaps.dwMaxOverlayStretch = 2147483647;
 1491+ //ddCaps.dwMinOverlayStretch = 1;
 1492+ //ddCaps.dwMaxOverlayStretch = 2147483647;
14931493 ddCaps.dwCKeyCaps = DDCKEYCAPS_SRCBLT | DDCKEYCAPS_DESTBLT;
14941494 ddCaps.dwZBufferBitDepths = DDBD_16 | DDBD_24 | DDBD_32;
14951495 ddCaps.dwNumFourCCCodes = GetNumFOURCC();