The first argument of IDirectDrawGammaControl::SetGammaRamp can be 0 or
DDSGR_CALIBRATE (defined as 0x00000001L in Microsoft headers).

I'm using mingw32-headers 13.0, provided by Fedora 44.
msdn link:
https://learn.microsoft.com/en-us/windows/win32/api/ddraw/nf-ddraw-idirectdrawgammacontrol-setgammaramp


>From 6a252992bca46837a0465272b41d83fc19b6aa39 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[email protected]>
Date: Tue, 26 May 2026 06:31:13 +0200
Subject: [PATCH] Add DDSGR_CALIBRATE macro to ddraw.h

DDSGR_CALIBRATE requests that the calibrator adjust
the gamma ramp according to the physical properties of the display,
which makes the result identical on all computers.
---
 mingw-w64-headers/include/ddraw.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mingw-w64-headers/include/ddraw.h
b/mingw-w64-headers/include/ddraw.h
index 8a1771a..0973c77 100644
--- a/mingw-w64-headers/include/ddraw.h
+++ b/mingw-w64-headers/include/ddraw.h
@@ -1019,6 +1019,9 @@ typedef struct _DDPIXELFORMAT {
 #define DDWAITVB_BLOCKBEGINEVENT 0x00000002
 #define DDWAITVB_BLOCKEND 0x00000004

+/* SetGammaRamp flags */
+#define DDSGR_CALIBRATE 0x00000001
+
 typedef struct _DDSURFACEDESC
 {
  DWORD dwSize; /* 0: size of the DDSURFACEDESC structure*/
-- 
2.54.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to