disabled retina
parent
eb331e4251
commit
9c7c0fdb95
|
@ -168,7 +168,7 @@ void window_drop_callback(GLFWwindow* window, int count, const char** paths) {
|
||||||
void window_hints(unsigned flags) {
|
void window_hints(unsigned flags) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
//glfwInitHint( GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE );
|
//glfwInitHint( GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE );
|
||||||
//glfwWindowHint( GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE );
|
glfwWindowHint( GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE );
|
||||||
//glfwWindowHint( GLFW_COCOA_GRAPHICS_SWITCHING, GLFW_FALSE );
|
//glfwWindowHint( GLFW_COCOA_GRAPHICS_SWITCHING, GLFW_FALSE );
|
||||||
//glfwWindowHint( GLFW_COCOA_MENUBAR, GLFW_FALSE );
|
//glfwWindowHint( GLFW_COCOA_MENUBAR, GLFW_FALSE );
|
||||||
#endif
|
#endif
|
||||||
|
@ -1042,7 +1042,7 @@ int window_record(const char *outfile_mp4) {
|
||||||
|
|
||||||
vec2 window_dpi() {
|
vec2 window_dpi() {
|
||||||
vec2 dpi = vec2(1,1);
|
vec2 dpi = vec2(1,1);
|
||||||
#ifndef __EMSCRIPTEN__
|
#if !defined(__EMSCRIPTEN__) && !defined(__APPLE__)
|
||||||
glfwGetMonitorContentScale(glfwGetPrimaryMonitor(), &dpi.x, &dpi.y);
|
glfwGetMonitorContentScale(glfwGetPrimaryMonitor(), &dpi.x, &dpi.y);
|
||||||
#endif
|
#endif
|
||||||
return dpi;
|
return dpi;
|
||||||
|
|
Loading…
Reference in New Issue