Cleanup: comments and CmakeLists.txt

This commit is contained in:
Bailey Cosier 2017-09-17 02:26:46 +07:00
parent 88b4ada658
commit 4c4174b733
3 changed files with 3 additions and 12 deletions

View File

@ -241,12 +241,7 @@ if (_GLFW_X11)
# Set up library and include paths # Set up library and include paths
list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}") list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}")
list(APPEND glfw_LIBRARIES "${X11_Xrender_LIB}" "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}") list(APPEND glfw_LIBRARIES "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}")
# Check for XRender (image composition and pict format querying)
if (NOT X11_Xrender_FOUND)
message(FATAL_ERROR "The XRender headers were not found")
endif()
# Check for XRandR (modern resolution switching and gamma control) # Check for XRandR (modern resolution switching and gamma control)
if (NOT X11_Xrandr_FOUND) if (NOT X11_Xrandr_FOUND)

View File

@ -869,9 +869,9 @@ extern "C" {
* Framebuffer double buffering [hint](@ref GLFW_DOUBLEBUFFER). * Framebuffer double buffering [hint](@ref GLFW_DOUBLEBUFFER).
*/ */
#define GLFW_DOUBLEBUFFER 0x00021010 #define GLFW_DOUBLEBUFFER 0x00021010
/*! @brief Context ALPHA Mask hint and attribute. /*! @brief Window transparency hint and attribute.
* *
* Context window alpha [hint](@ref GLFW_TRANSPARENT_hint) and * Context window transparency [hint](@ref GLFW_TRANSPARENT_hint) and
* [attribute](@ref GLFW_TRANSPARENT_attrib). * [attribute](@ref GLFW_TRANSPARENT_attrib).
*/ */
#define GLFW_TRANSPARENT 0x00021011 #define GLFW_TRANSPARENT 0x00021011

View File

@ -107,24 +107,20 @@ selectionloop:
visualinfo = glXGetVisualFromFBConfig(_glfw.x11.display, n); visualinfo = glXGetVisualFromFBConfig(_glfw.x11.display, n);
if (!visualinfo) { if (!visualinfo) {
printf("!visualinfo: bail\n");
continue; continue;
} }
pictFormat = XRenderFindVisualFormat(_glfw.x11.display, visualinfo->visual); pictFormat = XRenderFindVisualFormat(_glfw.x11.display, visualinfo->visual);
if( !pictFormat ) { if( !pictFormat ) {
printf("!pictFormat: bail\n");
XFree( visualinfo ); XFree( visualinfo );
continue; continue;
} }
if( !pictFormat->direct.alphaMask ) { if( !pictFormat->direct.alphaMask ) {
printf("!pictFormat->direct alphaMask: bail\n");
XFree( visualinfo ); XFree( visualinfo );
continue; continue;
} }
printf("looking for transparent visual: didn't find\n");
XFree( visualinfo ); XFree( visualinfo );
} }