aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Hensl <emulator@emulace.cz>2024-12-25 13:48:44 +0100
committerJaroslav Hensl <emulator@emulace.cz>2024-12-25 13:48:44 +0100
commitc5014304759e25237f3d007b7818eee62e0f554d (patch)
treeb5bd236f7a9276e47dbc48087128177c5028655c
parenteadb6ba06c642d2dd0d72e6bda08fba3bd09b5ad (diff)
downloadvmdisp9x-c5014304759e25237f3d007b7818eee62e0f554d.tar.gz
DD: extra callbacks
-rw-r--r--dddrv.c9
-rw-r--r--makefile2
2 files changed, 10 insertions, 1 deletions
diff --git a/dddrv.c b/dddrv.c
index 6bad565..d3496bd 100644
--- a/dddrv.c
+++ b/dddrv.c
@@ -478,6 +478,15 @@ BOOL DDCreateDriverObject(int bReset)
cbDDCallbacks.FlipToGDISurface = hal->cb32.FlipToGDISurface;
if(cbDDCallbacks.FlipToGDISurface) cbDDCallbacks.dwFlags |= DDHAL_CB32_FLIPTOGDISURFACE;
+ cbDDSurfaceCallbacks.SetColorKey = hal->cb32.SetColorKey;
+ if(cbDDSurfaceCallbacks.SetColorKey) cbDDSurfaceCallbacks.dwFlags |= DDHAL_SURFCB32_SETCOLORKEY;
+
+ cbDDSurfaceCallbacks.AddAttachedSurface = hal->cb32.AddAttachedSurface;
+ if(cbDDSurfaceCallbacks.AddAttachedSurface) cbDDSurfaceCallbacks.dwFlags |= DDHAL_SURFCB32_ADDATTACHEDSURFACE;
+
+ cbDDSurfaceCallbacks.SetOverlayPosition = hal->cb32.SetOverlayPosition;
+ if(cbDDSurfaceCallbacks.SetOverlayPosition) cbDDSurfaceCallbacks.dwFlags |= DDHAL_SURFCB32_SETOVERLAYPOSITION;
+
if(hal->cb32.DestroyDriver)
{
cbDDCallbacks.DestroyDriver = hal->cb32.DestroyDriver;
diff --git a/makefile b/makefile
index 0c6248b..d434ab7 100644
--- a/makefile
+++ b/makefile
@@ -12,7 +12,7 @@ OBJS += &
INCS = -I$(%WATCOM)\h\win -Iddk -Ivmware
-VER_BUILD = 92
+VER_BUILD = 93
FLAGS = -DDRV_VER_BUILD=$(VER_BUILD)