diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2025-03-13 23:17:12 +0100 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2025-03-13 23:17:12 +0100 |
commit | 0ab2cc0e698e41ffc30350f4c7e2a980f57192f0 (patch) | |
tree | 16eda4750ec8bc9a2591ebc0a1897711f80ee809 | |
parent | 0bcf7630302f016e1503c39a8dd32008eaead971 (diff) | |
download | vmdisp9x-0ab2cc0e698e41ffc30350f4c7e2a980f57192f0.tar.gz |
-rw-r--r-- | dddrv.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -277,7 +277,7 @@ static void buildDDHALInfo(VMDAHAL_t __far *hal, int modeidx) can_flip = hda->flags & FB_SUPPORT_FLIPING;
vidMem[0].dwFlags = VIDMEM_ISLINEAR;
- vidMem[0].ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
+ vidMem[0].ddsCaps.dwCaps = 0;//DDSCAPS_OFFSCREENPLAIN; - what this memory CANNOT be used for
#if 0
if(hda->system_surface + hda->stride < FB_MEM_POOL && hda->vram_size > FB_MEM_POOL)
@@ -336,11 +336,12 @@ static void buildDDHALInfo(VMDAHAL_t __far *hal, int modeidx) /* 3D support */
if(hal->d3dhal_global != NULL)
{
- hal->ddHALInfo.ddCaps.dwCaps |= DDCAPS_3D;
+ hal->ddHALInfo.ddCaps.dwCaps |= DDCAPS_3D | DDCAPS_ALPHA;
+ hal->ddHALInfo.ddCaps.dwCaps2 = hal->d3dhal_flags.caps2;
+
hal->ddHALInfo.ddCaps.ddsCaps.dwCaps |= hal->d3dhal_flags.ddscaps;
hal->ddHALInfo.ddCaps.dwZBufferBitDepths |= hal->d3dhal_flags.zcaps;
- hal->ddHALInfo.ddCaps.dwCaps2 = hal->d3dhal_flags.caps2;
hal->ddHALInfo.ddCaps.dwAlphaBltConstBitDepths = hal->d3dhal_flags.alpha_const;
hal->ddHALInfo.ddCaps.dwAlphaBltPixelBitDepths = hal->d3dhal_flags.alpha_pixel;
hal->ddHALInfo.ddCaps.dwAlphaBltSurfaceBitDepths = hal->d3dhal_flags.alpha_surface;
|