Fix various warnings reported by gcc

Shadowed variables, const warnings
This commit is contained in:
Lambert Clara
2012-08-12 13:24:21 +02:00
parent c8c36f6ec0
commit c2729181a2
9 changed files with 29 additions and 29 deletions

View File

@@ -100,10 +100,10 @@ int main(int argc, char** argv)
if (mode == GLFW_FULLSCREEN)
{
GLFWvidmode mode;
glfwGetDesktopMode(&mode);
width = mode.width;
height = mode.height;
GLFWvidmode desktop_mode;
glfwGetDesktopMode(&desktop_mode);
width = desktop_mode.width;
height = desktop_mode.height;
}
else
{
@@ -130,8 +130,6 @@ int main(int argc, char** argv)
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
{
int width, height;
if (iconified != glfwGetWindowParam(window, GLFW_ICONIFIED) ||
active != glfwGetWindowParam(window, GLFW_ACTIVE))
{