Skip to content

Commit

Permalink
window.c: disable the application-level Hi-DPI support on mac os, ref #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran6nd aka Francois NOUAILLE-DEGORCE authored and xtreme8000 committed Feb 14, 2022
1 parent 05171a2 commit fef5d8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ void window_init() {
glfwWindowHint(GLFW_SAMPLES, settings.multisamples);
}

/*
#FIXME: This is intended to fix the issue #145.
This is dirty because it disables the application-level Hi-DPI support for every installation
instead of being applied only to those who needs it.
*/
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE);

hud_window->impl
= glfwCreateWindow(settings.window_width, settings.window_height, "BetterSpades " BETTERSPADES_VERSION,
settings.fullscreen ? glfwGetPrimaryMonitor() : NULL, NULL);
Expand Down

0 comments on commit fef5d8b

Please sign in to comment.