|
|
@ -163,16 +163,7 @@ bool wlr_output_set_mode(struct wlr_output *output,
|
|
|
|
if (!output->impl || !output->impl->set_mode) {
|
|
|
|
if (!output->impl || !output->impl->set_mode) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool result = output->impl->set_mode(output, mode);
|
|
|
|
return output->impl->set_mode(output, mode);
|
|
|
|
if (result) {
|
|
|
|
|
|
|
|
wlr_output_update_matrix(output);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct wl_resource *resource;
|
|
|
|
|
|
|
|
wl_resource_for_each(resource, &output->wl_resources) {
|
|
|
|
|
|
|
|
wlr_output_send_current_mode_to_resource(resource);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
@ -180,16 +171,7 @@ bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
if (!output->impl || !output->impl->set_custom_mode) {
|
|
|
|
if (!output->impl || !output->impl->set_custom_mode) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool result = output->impl->set_custom_mode(output, width, height, refresh);
|
|
|
|
return output->impl->set_custom_mode(output, width, height, refresh);
|
|
|
|
if (result) {
|
|
|
|
|
|
|
|
wlr_output_update_matrix(output);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct wl_resource *resource;
|
|
|
|
|
|
|
|
wl_resource_for_each(resource, &output->wl_resources) {
|
|
|
|
|
|
|
|
wlr_output_send_current_mode_to_resource(resource);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_output_update_mode(struct wlr_output *output,
|
|
|
|
void wlr_output_update_mode(struct wlr_output *output,
|
|
|
|