mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Cleanup: Use GLFWbool instead of int
This commit is contained in:
parent
680d10bbb5
commit
0e9ade81a3
@ -347,7 +347,6 @@ struct _GLFWfbconfig
|
||||
int redBits;
|
||||
int greenBits;
|
||||
int blueBits;
|
||||
int transparent;
|
||||
int alphaBits;
|
||||
int depthBits;
|
||||
int stencilBits;
|
||||
@ -358,7 +357,8 @@ struct _GLFWfbconfig
|
||||
int auxBuffers;
|
||||
GLFWbool stereo;
|
||||
int samples;
|
||||
GLFWbool sRGB;
|
||||
GLFWbool sRGB;
|
||||
GLFWbool transparent;
|
||||
GLFWbool doublebuffer;
|
||||
uintptr_t handle;
|
||||
};
|
||||
@ -403,7 +403,6 @@ struct _GLFWwindow
|
||||
// Window settings and state
|
||||
GLFWbool resizable;
|
||||
GLFWbool decorated;
|
||||
GLFWbool transparent;
|
||||
GLFWbool autoIconify;
|
||||
GLFWbool floating;
|
||||
GLFWbool shouldClose;
|
||||
|
@ -57,7 +57,7 @@ static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib
|
||||
static int choosePixelFormat(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig,
|
||||
const int transparent)
|
||||
const GLFWbool transparent)
|
||||
{
|
||||
_GLFWfbconfig* usableConfigs;
|
||||
const _GLFWfbconfig* closest;
|
||||
|
@ -733,8 +733,6 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib)
|
||||
return window->resizable;
|
||||
case GLFW_DECORATED:
|
||||
return window->decorated;
|
||||
case GLFW_TRANSPARENT:
|
||||
return window->transparent;
|
||||
case GLFW_FLOATING:
|
||||
return window->floating;
|
||||
case GLFW_AUTO_ICONIFY:
|
||||
|
Loading…
Reference in New Issue
Block a user