mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Cleanup: comments and CmakeLists.txt
This commit is contained in:
parent
88b4ada658
commit
4c4174b733
@ -241,12 +241,7 @@ if (_GLFW_X11)
|
||||
|
||||
# Set up library and include paths
|
||||
list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}")
|
||||
list(APPEND glfw_LIBRARIES "${X11_Xrender_LIB}" "${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()
|
||||
list(APPEND glfw_LIBRARIES "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}")
|
||||
|
||||
# Check for XRandR (modern resolution switching and gamma control)
|
||||
if (NOT X11_Xrandr_FOUND)
|
||||
|
@ -869,9 +869,9 @@ extern "C" {
|
||||
* Framebuffer double buffering [hint](@ref GLFW_DOUBLEBUFFER).
|
||||
*/
|
||||
#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).
|
||||
*/
|
||||
#define GLFW_TRANSPARENT 0x00021011
|
||||
|
@ -107,24 +107,20 @@ selectionloop:
|
||||
|
||||
visualinfo = glXGetVisualFromFBConfig(_glfw.x11.display, n);
|
||||
if (!visualinfo) {
|
||||
printf("!visualinfo: bail\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
pictFormat = XRenderFindVisualFormat(_glfw.x11.display, visualinfo->visual);
|
||||
if( !pictFormat ) {
|
||||
printf("!pictFormat: bail\n");
|
||||
XFree( visualinfo );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( !pictFormat->direct.alphaMask ) {
|
||||
printf("!pictFormat->direct alphaMask: bail\n");
|
||||
XFree( visualinfo );
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("looking for transparent visual: didn't find\n");
|
||||
XFree( visualinfo );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user