aboutsummaryrefslogtreecommitdiff
path: root/smelt/glfw/sys_glfw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smelt/glfw/sys_glfw.cpp')
-rw-r--r--smelt/glfw/sys_glfw.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/smelt/glfw/sys_glfw.cpp b/smelt/glfw/sys_glfw.cpp
index 663fdf4..6a35016 100644
--- a/smelt/glfw/sys_glfw.cpp
+++ b/smelt/glfw/sys_glfw.cpp
@@ -73,7 +73,7 @@ bool SMELT_IMPL::smInit()
else if(i==0x80000004)
memcpy(cpuName+32, CPUInfo, sizeof(CPUInfo));
}
- while(*cpuName=' ')++cpuName;
+ while(*cpuName==' ')++cpuName;
smLog("%s:" SLINE ": CPU: %s\n", SYS_GLFW_SRCFN,cpuName);
free(loced);
@@ -106,8 +106,7 @@ bool SMELT_IMPL::smInit()
return false;
}
GLFWmonitor *moninfo=glfwGetPrimaryMonitor();
- dispw=glfwGetVideoMode(moninfo)->width;
- disph=glfwGetVideoMode(moninfo)->height;
+ glfwGetMonitorPhysicalSize(moninfo,&dispw,&disph);
smLog("%s:" SLINE ": Screen: %d x %d\n",SYS_GLFW_SRCFN,dispw,disph);
glfwWindowHint(GLFW_RED_BITS,8);
glfwWindowHint(GLFW_GREEN_BITS,8);