forward resource modes next to crtcs

modes will be required for proper refreshrate detection
This commit is contained in:
Thomas Lübking 2015-05-08 22:55:21 +02:00
parent c56d64b837
commit 0a3155972b

View file

@ -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*)