DXGL r916 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r915‎ | r916 | r917 >
Date:20:37, 13 April 2019
Author:admin
Status:new
Tags:
Comment:
Update DDraw caps bits.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1469,8 +1469,8 @@
14701470 else TRACE_RET(HRESULT,23,DDERR_INVALIDPARAMS);
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);
1473 - ddCaps.dwCaps = DDCAPS_BLT | DDCAPS_BLTCOLORFILL | DDCAPS_BLTDEPTHFILL | DDCAPS_BLTSTRETCH |
1474 - DDCAPS_COLORKEY | DDCAPS_GDI | DDCAPS_PALETTE | DDCAPS_CANBLTSYSMEM |
 1473+ ddCaps.dwCaps = DDCAPS_BLT | DDCAPS_BLTCOLORFILL | DDCAPS_BLTDEPTHFILL | DDCAPS_BLTFOURCC |
 1474+ DDCAPS_BLTSTRETCH | DDCAPS_COLORKEY | DDCAPS_GDI | DDCAPS_PALETTE | DDCAPS_CANBLTSYSMEM |
14751475 DDCAPS_3D | DDCAPS_CANCLIP | DDCAPS_CANCLIPSTRETCHED | DDCAPS_READSCANLINE;
14761476 ddCaps.dwCaps2 = DDCAPS2_CANRENDERWINDOWED | DDCAPS2_WIDESURFACES | DDCAPS2_NOPAGELOCKREQUIRED |
14771477 DDCAPS2_FLIPINTERVAL | DDCAPS2_FLIPNOVSYNC | DDCAPS2_NONLOCALVIDMEM;
@@ -1477,7 +1477,8 @@
14781478 ddCaps.dwFXCaps = DDFXCAPS_BLTSHRINKX | DDFXCAPS_BLTSHRINKY |
14791479 DDFXCAPS_BLTSTRETCHX | DDFXCAPS_BLTSTRETCHY | DDFXCAPS_BLTMIRRORLEFTRIGHT |
14801480 DDFXCAPS_BLTMIRRORUPDOWN | DDFXCAPS_BLTROTATION90;
1481 - ddCaps.dwPalCaps = DDPCAPS_8BIT | DDPCAPS_PRIMARYSURFACE | DDPCAPS_ALLOW256;
 1481+ ddCaps.dwPalCaps = DDPCAPS_1BIT | DDPCAPS_2BIT | DDPCAPS_4BIT | DDPCAPS_8BIT |
 1482+ DDPCAPS_PRIMARYSURFACE | DDPCAPS_ALLOW256;
14821483 ddCaps.ddsOldCaps.dwCaps = ddCaps.ddsCaps.dwCaps =
14831484 DDSCAPS_BACKBUFFER | DDSCAPS_COMPLEX | DDSCAPS_FLIP |
14841485 DDSCAPS_FRONTBUFFER | DDSCAPS_OFFSCREENPLAIN | DDSCAPS_PALETTE |
@@ -1486,6 +1487,8 @@
14871488 DDSCAPS_MIPMAP;
14881489 ddCaps.ddsCaps.dwCaps2 = DDSCAPS2_MIPMAPSUBLEVEL;
14891490 ddCaps.dwCKeyCaps = DDCKEYCAPS_SRCBLT | DDCKEYCAPS_DESTBLT;
 1491+ ddCaps.dwZBufferBitDepths = DDBD_16 | DDBD_24 | DDBD_32;
 1492+ ddCaps.dwNumFourCCCodes = GetNumFOURCC();
14901493 BOOL fullrop = FALSE;
14911494 if (!renderer)
14921495 {