aboutsummaryrefslogtreecommitdiffstats
path: root/vxd_main.c
diff options
context:
space:
mode:
authorJaroslav Hensl <emulator@emulace.cz>2024-08-25 12:52:59 +0200
committerJaroslav Hensl <emulator@emulace.cz>2024-08-25 12:52:59 +0200
commita31f4e91c1908b937e5d4f8421f0257043a89829 (patch)
tree2e0a29e891b465ac98e408932630fbe420959381 /vxd_main.c
parent9bbfec33c0344a80fccee0b25a0887f22e2d9a73 (diff)
downloadvmdisp9x-a31f4e91c1908b937e5d4f8421f0257043a89829.tar.gz
Gamma support
Diffstat (limited to 'vxd_main.c')
-rw-r--r--vxd_main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/vxd_main.c b/vxd_main.c
index b4ca31f..cac0ea1 100644
--- a/vxd_main.c
+++ b/vxd_main.c
@@ -231,7 +231,7 @@ WORD __stdcall VXD_API_Proc(PCRS_32 state)
WORD rc = 0xFFFF;
WORD service = state->Client_EDX & 0xFFFF;
-// dbg_printf(dbg_vxd_api, service);
+ //dbg_printf(dbg_vxd_api, service);
Begin_Critical_Section(0);
switch(service)
@@ -288,6 +288,16 @@ WORD __stdcall VXD_API_Proc(PCRS_32 state)
rc = 1;
break;
}
+ case OP_FBHDA_GAMMA_GET:
+ dbg_printf("OP_FBHDA_GAMMA_GET\n");
+ state->Client_ECX = FBHDA_gamma_get((void *)state->Client_EDI, state->Client_ECX);
+ rc = 1;
+ break;
+ case OP_FBHDA_GAMMA_SET:
+ dbg_printf("OP_FBHDA_GAMMA_SET\n");
+ state->Client_ECX = FBHDA_gamma_set((void *)state->Client_ESI, state->Client_ECX);
+ rc = 1;
+ break;
/* mouse */
case OP_MOUSE_LOAD:
state->Client_ECX = mouse_load();