aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Hensl <emulator@emulace.cz>2024-12-31 01:28:01 +0100
committerJaroslav Hensl <emulator@emulace.cz>2024-12-31 01:28:01 +0100
commita4094075b7982d7d4371086e98eb0684ed9c0417 (patch)
tree8bde65d42b28a4f433e3468b7a4aad60dfe9b6e4
parentc5014304759e25237f3d007b7818eee62e0f554d (diff)
downloadvmdisp9x-main.tar.gz
more attributes from DDHALHEADmain
-rw-r--r--dddrv.c8
-rw-r--r--makefile2
-rw-r--r--vmdahal.h4
3 files changed, 10 insertions, 4 deletions
diff --git a/dddrv.c b/dddrv.c
index d3496bd..d641512 100644
--- a/dddrv.c
+++ b/dddrv.c
@@ -322,9 +322,11 @@ static void buildDDHALInfo(VMDAHAL_t __far *hal, int modeidx)
hal->ddHALInfo.ddCaps.dwCaps |= DDCAPS_3D;
hal->ddHALInfo.ddCaps.ddsCaps.dwCaps |= hal->d3dhal_flags.ddscaps;
hal->ddHALInfo.ddCaps.dwZBufferBitDepths |= hal->d3dhal_flags.zcaps;
-#if 0
- hal->ddHALInfo.ddCaps.dwCaps2 = DDCAPS2_NO2DDURING3DSCENE;
-#endif
+
+ 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;
}
if(can_flip)
diff --git a/makefile b/makefile
index d434ab7..e744ccd 100644
--- a/makefile
+++ b/makefile
@@ -12,7 +12,7 @@ OBJS += &
INCS = -I$(%WATCOM)\h\win -Iddk -Ivmware
-VER_BUILD = 93
+VER_BUILD = 94
FLAGS = -DDRV_VER_BUILD=$(VER_BUILD)
diff --git a/vmdahal.h b/vmdahal.h
index 818fe9d..494ac6d 100644
--- a/vmdahal.h
+++ b/vmdahal.h
@@ -48,6 +48,10 @@ typedef struct VMDAHAL_D3DCAPS
{
DWORD ddscaps;
DWORD zcaps;
+ DWORD caps2;
+ DWORD alpha_const;
+ DWORD alpha_pixel;
+ DWORD alpha_surface;
} VMDAHAL_D3DCAPS_t;
typedef struct VMDAHAL