mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Removed duplicate width and height parameters already included in window struct.
This commit is contained in:
parent
c6bd6a7741
commit
819d0446b1
@ -255,7 +255,7 @@ double _glfwPlatformGetTime(void);
|
|||||||
void _glfwPlatformSetTime(double time);
|
void _glfwPlatformSetTime(double time);
|
||||||
|
|
||||||
// Window management
|
// Window management
|
||||||
int _glfwPlatformOpenWindow(_GLFWwindow* window, int width, int height, const _GLFWwndconfig* wndconfig, const _GLFWfbconfig* fbconfig);
|
int _glfwPlatformOpenWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWfbconfig* fbconfig);
|
||||||
int _glfwPlatformMakeWindowCurrent(_GLFWwindow* window);
|
int _glfwPlatformMakeWindowCurrent(_GLFWwindow* window);
|
||||||
void _glfwPlatformCloseWindow(_GLFWwindow* window);
|
void _glfwPlatformCloseWindow(_GLFWwindow* window);
|
||||||
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title);
|
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title);
|
||||||
|
@ -499,7 +499,7 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height, int mode)
|
|||||||
window->mode = mode;
|
window->mode = mode;
|
||||||
|
|
||||||
// Platform specific window opening routine
|
// Platform specific window opening routine
|
||||||
if (!_glfwPlatformOpenWindow(window, width, height, &wndconfig, &fbconfig))
|
if (!_glfwPlatformOpenWindow(window, &wndconfig, &fbconfig))
|
||||||
{
|
{
|
||||||
glfwCloseWindow(window);
|
glfwCloseWindow(window);
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
@ -685,7 +685,6 @@ static void initGLXExtensions(_GLFWwindow* window)
|
|||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
static GLboolean createWindow(_GLFWwindow* window,
|
static GLboolean createWindow(_GLFWwindow* window,
|
||||||
int width, int height,
|
|
||||||
const _GLFWwndconfig* wndconfig)
|
const _GLFWwndconfig* wndconfig)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
@ -1370,7 +1369,6 @@ static void processSingleEvent(void)
|
|||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||||
int width, int height,
|
|
||||||
const _GLFWwndconfig* wndconfig,
|
const _GLFWwndconfig* wndconfig,
|
||||||
const _GLFWfbconfig* fbconfig)
|
const _GLFWfbconfig* fbconfig)
|
||||||
{
|
{
|
||||||
@ -1405,7 +1403,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
|||||||
if (!createContext(window, wndconfig, (GLXFBConfigID) closest.platformID))
|
if (!createContext(window, wndconfig, (GLXFBConfigID) closest.platformID))
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
||||||
if (!createWindow(window, width, height, wndconfig))
|
if (!createWindow(window, wndconfig))
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
||||||
if (wndconfig->mode == GLFW_FULLSCREEN)
|
if (wndconfig->mode == GLFW_FULLSCREEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user