mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 09:01:46 +00:00
Renamed monitor related files.
This commit is contained in:
parent
3aa4976d6f
commit
29a4eca87d
@ -27,7 +27,7 @@ include_directories(${GLFW_SOURCE_DIR}/src
|
||||
${GLFW_BINARY_DIR}/src
|
||||
${GLFW_INCLUDE_DIR})
|
||||
|
||||
set(common_SOURCES display.c enable.c error.c fullscreen.c gamma.c init.c input.c
|
||||
set(common_SOURCES monitor.c enable.c error.c fullscreen.c gamma.c init.c input.c
|
||||
joystick.c opengl.c time.c window.c)
|
||||
|
||||
if(_GLFW_COCOA_NSGL)
|
||||
@ -41,9 +41,9 @@ elseif(_GLFW_WIN32_WGL)
|
||||
set(libglfw_SOURCES ${common_SOURCES} win32_enable.c win32_fullscreen.c
|
||||
win32_gamma.c win32_init.c win32_joystick.c
|
||||
win32_opengl.c win32_time.c win32_window.c
|
||||
win32_dllmain.c win32_display.c)
|
||||
win32_dllmain.c win32_monitor.c)
|
||||
elseif(_GLFW_X11_GLX)
|
||||
set(libglfw_SOURCES ${common_SOURCES} x11_display.c x11_enable.c
|
||||
set(libglfw_SOURCES ${common_SOURCES} x11_monitor.c x11_enable.c
|
||||
x11_fullscreen.c x11_gamma.c x11_init.c x11_joystick.c
|
||||
x11_keysym2unicode.c x11_opengl.c x11_time.c
|
||||
x11_window.c)
|
||||
|
@ -52,7 +52,7 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, DISPLAY_DEVICE* adapte
|
||||
|
||||
DeleteDC(dc);
|
||||
|
||||
(*monitor)->deviceName = _glfwMalloc(strlen(monitor->DeviceName) + 1);
|
||||
(*current)->deviceName = _glfwMalloc(strlen(monitor->DeviceName) + 1);
|
||||
memcpy((*current)->deviceName, monitor->DeviceName, strlen(monitor->DeviceName) + 1);
|
||||
(*current)->deviceName[strlen(monitor->DeviceName)] = '\0';
|
||||
|
@ -47,7 +47,7 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, XRROutputInfo* outputI
|
||||
(*current)->physicalWidth = outputInfo->mm_width;
|
||||
(*current)->physicalHeight = outputInfo->mm_height;
|
||||
|
||||
(*monitor)->deviceName = _glfwMalloc(strlen(outputInfo->name) + 1);
|
||||
(*current)->deviceName = _glfwMalloc(strlen(outputInfo->name) + 1);
|
||||
memcpy((*current)->deviceName, outputInfo->name, strlen(outputInfo->name) + 1);
|
||||
(*current)->deviceName[strlen(outputInfo->name)] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user