Cleanup: Use GLFWbool instead of int

This commit is contained in:
Bailey Cosier 2017-09-17 22:20:45 +07:00
parent 680d10bbb5
commit 0e9ade81a3
3 changed files with 3 additions and 6 deletions

View File

@ -347,7 +347,6 @@ struct _GLFWfbconfig
int redBits;
int greenBits;
int blueBits;
int transparent;
int alphaBits;
int depthBits;
int stencilBits;
@ -359,6 +358,7 @@ struct _GLFWfbconfig
GLFWbool stereo;
int samples;
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;

View File

@ -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;

View File

@ -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: