mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Implemented display aware glfwVideoModes function for X11 XRandR and win32.
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowX11 X11
|
||||
#define _GLFW_PLATFORM_LIBRARY_STATE _GLFWlibraryX11 X11
|
||||
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextGLX GLX
|
||||
#define _GLFW_PLATFORM_DISPLAY_STATE _GLFWdisplayX11 X11
|
||||
|
||||
|
||||
//========================================================================
|
||||
@@ -244,6 +245,15 @@ GLFWGLOBAL struct {
|
||||
} _glfwJoy[GLFW_JOYSTICK_LAST + 1];
|
||||
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Platform-specific window structure
|
||||
//------------------------------------------------------------------------
|
||||
typedef struct _GLFWdisplayX11
|
||||
{
|
||||
XRROutputInfo* output;
|
||||
} _GLFWdisplayX11;
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Prototypes for platform specific internal functions
|
||||
//========================================================================
|
||||
|
||||
Reference in New Issue
Block a user