forward resource modes next to crtcs

modes will be required for proper refreshrate detection
icc-effect-5.14.5
Thomas Lübking 2015-05-08 22:55:21 +02:00
parent c56d64b837
commit 0a3155972b
1 changed files with 12 additions and 0 deletions

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