mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: platform: refactor R_GetWindowHandle to return a struct instead of a pointer
This commit is contained in:
@@ -314,6 +314,7 @@ typedef enum
|
||||
|
||||
enum
|
||||
{
|
||||
REF_WINDOW_TYPE_NONE = 0, // NULL
|
||||
REF_WINDOW_TYPE_WIN32 = 1, // HWND
|
||||
REF_WINDOW_TYPE_X11 = 2, // Display*
|
||||
REF_WINDOW_TYPE_WAYLAND = 3, // wl_display*
|
||||
@@ -344,7 +345,7 @@ void *SW_LockBuffer( void );
|
||||
void SW_UnlockBuffer( void );
|
||||
qboolean SW_CreateBuffer( int width, int height, uint *stride, uint *bpp, uint *r, uint *g, uint *b );
|
||||
void Platform_Minimize_f( void );
|
||||
window_handle_t *R_GetWindowHandle( void );
|
||||
window_handle_t R_GetWindowHandle( void );
|
||||
|
||||
//
|
||||
// in_evdev.c
|
||||
|
||||
Reference in New Issue
Block a user