forward resource modes next to crtcs
modes will be required for proper refreshrate detection
This commit is contained in:
parent
c56d64b837
commit
0a3155972b
1 changed files with 12 additions and 0 deletions
12
xcbutils.h
12
xcbutils.h
|
@ -1125,6 +1125,12 @@ public:
|
|||
}
|
||||
return xcb_randr_get_screen_resources_crtcs(data());
|
||||
}
|
||||
inline xcb_randr_mode_info_t *modes() {
|
||||
if (isNull()) {
|
||||
return nullptr;
|
||||
}
|
||||
return xcb_randr_get_screen_resources_modes(data());
|
||||
}
|
||||
};
|
||||
|
||||
XCB_WRAPPER_DATA(CrtcGammaData, xcb_randr_get_crtc_gamma, xcb_randr_crtc_t)
|
||||
|
@ -1173,6 +1179,12 @@ public:
|
|||
}
|
||||
return xcb_randr_get_screen_resources_current_crtcs(data());
|
||||
}
|
||||
inline xcb_randr_mode_info_t *modes() {
|
||||
if (isNull()) {
|
||||
return nullptr;
|
||||
}
|
||||
return xcb_randr_get_screen_resources_current_modes(data());
|
||||
}
|
||||
};
|
||||
|
||||
XCB_WRAPPER(SetCrtcConfig, xcb_randr_set_crtc_config, xcb_randr_crtc_t, xcb_timestamp_t, xcb_timestamp_t, int16_t, int16_t, xcb_randr_mode_t, uint16_t, uint32_t, const xcb_randr_output_t*)
|
||||
|
|
Loading…
Reference in a new issue