From 50c4e7b82a890900eb1b517758d58baf9923bfbe Mon Sep 17 00:00:00 2001 From: spanne Date: Fri, 1 Jul 2005 11:42:27 +0000 Subject: [PATCH] MinGW is lacking a prototype for ChangeDisplaySettingsEx, so supply one in this case. Note that this should better be handled via autoconf than via cpp. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@652 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/ChangeLog | 8 ++++++++ freeglut/freeglut/src/freeglut_internal.h | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index 1fac49c..72b5b5d 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -1070,4 +1070,12 @@ VisibilityNotify, so we have to handle the window status callback in the former case, too. This fixes bug #763442 (Call the visibility callback when minimizing a window). +************************************************************************** +* Changes on July 1, 2005. +************************************************************************** + (277) Removed redundant files from EXTRA_DIST. + +(278) MinGW is lacking a prototype for ChangeDisplaySettingsEx, so +supply one in this case. Note that this should better be handled via +autoconf than via cpp. diff --git a/freeglut/freeglut/src/freeglut_internal.h b/freeglut/freeglut/src/freeglut_internal.h index 185f9a4..f0c639c 100644 --- a/freeglut/freeglut/src/freeglut_internal.h +++ b/freeglut/freeglut/src/freeglut_internal.h @@ -62,6 +62,17 @@ #include #endif +/* TODO: MinGW is lacking a prototype, this should better be handled via autoconf! */ +#ifndef ChangeDisplaySettingsEx +LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); +LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); +#ifdef UNICODE +#define ChangeDisplaySettingsEx ChangeDisplaySettingsExW +#else +#define ChangeDisplaySettingsEx ChangeDisplaySettingsExA +#endif +#endif + #if defined(_MSC_VER) #define strdup _strdup #endif