mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-28 16:43:20 -08:00
linux_window_manager: query default refresh rate via xrandr, rather than assuming 60 (oops!)
This commit is contained in:
1 parent
a256e5c48a
commit
56073cfff0
5 files changed
+40
-8
No files matched your search
@@ -29,14 +29,14 @@ cc_link="-lpthread -lm -lrt -ldl"
|
||||
cc_link_dll="-fPIC"
|
||||
|
||||
# --- External Libraries ------------------------------------------------------
|
||||
# sudo apt install -y pkg-config libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libgl-dev libegl-dev
|
||||
# sudo apt install -y pkg-config libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxrandr-dev libgl-dev libegl-dev
|
||||
if [[ -x "$(command -v pkg-config)" ]]; then
|
||||
cc_font_provider="$(pkg-config --cflags --libs freetype2)"
|
||||
cc_os_gfx="$(pkg-config --cflags --libs x11 xext xfixes)"
|
||||
cc_os_gfx="$(pkg-config --cflags --libs x11 xext xfixes xrandr)"
|
||||
cc_render="$(pkg-config --cflags --libs gl egl)"
|
||||
else
|
||||
cc_font_provider="-I/usr/include/freetype2 -lfreetype"
|
||||
cc_os_gfx="-lX11 -lXext -lXfixes"
|
||||
cc_os_gfx="-lX11 -lXext -lXfixes -lXrandr"
|
||||
cc_render="-lGL -lEGL"
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user