Improved X11 screen_get_refresh_rate performance
This commit is contained in:
parent
e8d57afaec
commit
085255bd0e
1 changed files with 1 additions and 1 deletions
|
@ -1571,7 +1571,7 @@ float DisplayServerX11::screen_get_refresh_rate(int p_screen) const {
|
|||
|
||||
//Use xrandr to get screen refresh rate.
|
||||
if (xrandr_ext_ok) {
|
||||
XRRScreenResources *screen_info = XRRGetScreenResources(x11_display, windows[MAIN_WINDOW_ID].x11_window);
|
||||
XRRScreenResources *screen_info = XRRGetScreenResourcesCurrent(x11_display, windows[MAIN_WINDOW_ID].x11_window);
|
||||
if (screen_info) {
|
||||
RRMode current_mode = 0;
|
||||
xrr_monitor_info *monitors = nullptr;
|
||||
|
|
Loading…
Reference in a new issue