Formatting.

master
Camilla Berglund ago%!(EXTRA string=13 years)
parent 247ee76b5c
commit 73622a2f3c
  1. 4
      src/monitor.c
  2. 14
      src/win32_monitor.c
  3. 14
      src/x11_monitor.c
  4. 2
      src/x11_platform.h

@ -132,6 +132,7 @@ GLFWAPI const char* glfwGetMonitorString(GLFWmonitor handle, int param)
return NULL;
}
//========================================================================
// Set a callback function for monitor events
//========================================================================
@ -147,6 +148,7 @@ GLFWAPI void glfwSetMonitorDeviceCallback(GLFWmonitordevicefun cbfun)
_glfwLibrary.monitorCallback= cbfun;
}
//========================================================================
// Initialize the monitor list.
//========================================================================
@ -156,6 +158,7 @@ void _glfwInitMonitors(void)
_glfwLibrary.monitorListHead = _glfwCreateMonitors();
}
//========================================================================
// Refresh monitor list and notify callback.
//========================================================================
@ -240,6 +243,7 @@ void _glfwRefreshMonitors(void)
_glfwLibrary.monitorListHead = newMonitorList;
}
//========================================================================
// Delete the monitor list.
//========================================================================

@ -48,6 +48,10 @@
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Create a monitor struct from the specified information
//========================================================================
_GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current,
DISPLAY_DEVICE* adapter,
DISPLAY_DEVICE* monitor,
@ -75,6 +79,11 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current,
return &((*current)->next);
}
//========================================================================
// Destroy a monitor struct
//========================================================================
_GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor)
{
_GLFWmonitor* result;
@ -88,6 +97,11 @@ _GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor)
return result;
}
//========================================================================
// Return a list of available monitors
//========================================================================
_GLFWmonitor* _glfwCreateMonitors(void)
{
DISPLAY_DEVICE adapter;

@ -38,6 +38,10 @@
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Create a monitor struct from the specified information
//========================================================================
#if defined (_GLFW_HAS_XRANDR)
_GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current,
XRROutputInfo* outputInfo,
@ -61,6 +65,11 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current,
}
#endif /*_GLFW_HAS_XRANDR*/
//========================================================================
// Destroy a monitor struct
//========================================================================
_GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor)
{
_GLFWmonitor* result;
@ -77,6 +86,11 @@ _GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor)
return result;
}
//========================================================================
// Return a list of available monitors
//========================================================================
_GLFWmonitor* _glfwCreateMonitors(void)
{
_GLFWmonitor* monitorList;

@ -284,7 +284,7 @@ GLFWGLOBAL struct {
typedef struct _GLFWmonitorX11
{
#if defined(_GLFW_HAS_XRANDR)
XRROutputInfo* output;
XRROutputInfo* output;
#else
int dummy;
#endif /*_GLFW_HAS_XRANDR*/

Loading…
Cancel
Save