mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-02 20:14:39 +00:00
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:
@@ -864,6 +864,8 @@ SDL3_0.0.0 {
|
||||
SDL_hid_get_input_report;
|
||||
SDL_hid_get_device_info;
|
||||
SDL_hid_get_report_descriptor;
|
||||
SDL_HasWindowSurface;
|
||||
SDL_DestroyWindowSurface;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -935,3 +935,5 @@ SDL_DYNAPI_PROC(int,SDL_vswprintf,(wchar_t *a, size_t b, const wchar_t *c, va_li
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_get_input_report,(SDL_hid_device *a, unsigned char *b, size_t c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(SDL_hid_device_info*,SDL_hid_get_device_info,(SDL_hid_device *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_get_report_descriptor,(SDL_hid_device *a, unsigned char *b, size_t c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_HasWindowSurface,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_DestroyWindowSurface,(SDL_Window *a),(a),return)
|
||||
|
||||
Reference in New Issue
Block a user