Removed duplicate width and height parameters already included in window struct.

This commit is contained in:
Camilla Berglund
2010-09-13 23:42:51 +02:00
parent c6bd6a7741
commit 819d0446b1
3 changed files with 6 additions and 8 deletions
+4 -6
View File
@@ -685,7 +685,6 @@ static void initGLXExtensions(_GLFWwindow* window)
//========================================================================
static GLboolean createWindow(_GLFWwindow* window,
int width, int height,
const _GLFWwndconfig* wndconfig)
{
XEvent event;
@@ -696,9 +695,9 @@ static GLboolean createWindow(_GLFWwindow* window,
// Create one based on the visual used by the current context
window->X11.colormap = XCreateColormap(_glfwLibrary.X11.display,
_glfwLibrary.X11.root,
window->GLX.visual->visual,
AllocNone);
_glfwLibrary.X11.root,
window->GLX.visual->visual,
AllocNone);
// Create the actual window
{
@@ -1370,7 +1369,6 @@ static void processSingleEvent(void)
//========================================================================
int _glfwPlatformOpenWindow(_GLFWwindow* window,
int width, int height,
const _GLFWwndconfig* wndconfig,
const _GLFWfbconfig* fbconfig)
{
@@ -1405,7 +1403,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
if (!createContext(window, wndconfig, (GLXFBConfigID) closest.platformID))
return GL_FALSE;
if (!createWindow(window, width, height, wndconfig))
if (!createWindow(window, wndconfig))
return GL_FALSE;
if (wndconfig->mode == GLFW_FULLSCREEN)