Make it clear that you can't mix 2D rendering and the window surface API

Also added functions to query and destroy the window surface so you can switch between modes if you want.

See https://github.com/pygame-community/pygame-ce/issues/2190 for more details.
This commit is contained in:
Sam Lantinga 2023-06-10 08:39:20 -07:00
parent 5490873daa
commit 281018f169
7 changed files with 154 additions and 957 deletions

View file

@ -890,3 +890,5 @@
#define SDL_hid_get_input_report SDL_hid_get_input_report_REAL
#define SDL_hid_get_device_info SDL_hid_get_device_info_REAL
#define SDL_hid_get_report_descriptor SDL_hid_get_report_descriptor_REAL
#define SDL_HasWindowSurface SDL_HasWindowSurface_REAL
#define SDL_DestroyWindowSurface SDL_DestroyWindowSurface_REAL