Added SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE (thanks @lostgoat!)

This commit is contained in:
Sam Lantinga 2024-06-13 14:54:36 -07:00
parent d46b8bc54e
commit 0635112119
4 changed files with 65 additions and 1 deletions

View file

@ -3552,6 +3552,22 @@ extern "C" {
*/
#define SDL_HINT_WINDOWS_USE_D3D9EX "SDL_WINDOWS_USE_D3D9EX"
/**
* A variable controlling whether SDL will clear the window contents when
* the WM_ERASEBKGND message is received.
*
* The variable can be set to the following values:
*
* - "0"/"never": Never clear the window.
* - "1"/"initial": Clear the window when the first WM_ERASEBKGND event fires. (default)
* - "2"/"always": Clear the window on every WM_ERASEBKGND event.
*
* This hint should be set before creating a window.
*
* \since This hint is available since SDL 3.0.0.
*/
#define SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE "SDL_WINDOWS_ERASE_BACKGROUND_MODE"
/**
* A variable controlling whether back-button-press events on Windows Phone to
* be marked as handled.