|
|
@ -224,18 +224,7 @@ void wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
wlr_output_state_set_custom_mode(&output->pending, width, height, refresh);
|
|
|
|
wlr_output_state_set_custom_mode(&output->pending, width, height, refresh);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_output_update_mode(struct wlr_output *output,
|
|
|
|
static void wlr_output_update_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
struct wlr_output_mode *mode) {
|
|
|
|
|
|
|
|
output->current_mode = mode;
|
|
|
|
|
|
|
|
if (mode != NULL) {
|
|
|
|
|
|
|
|
wlr_output_update_custom_mode(output, mode->width, mode->height,
|
|
|
|
|
|
|
|
mode->refresh);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
wlr_output_update_custom_mode(output, 0, 0, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_output_update_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
|
|
|
|
int32_t height, int32_t refresh) {
|
|
|
|
int32_t height, int32_t refresh) {
|
|
|
|
if (output->width == width && output->height == height &&
|
|
|
|
if (output->width == width && output->height == height &&
|
|
|
|
output->refresh == refresh) {
|
|
|
|
output->refresh == refresh) {
|
|
|
@ -262,6 +251,17 @@ void wlr_output_update_custom_mode(struct wlr_output *output, int32_t width,
|
|
|
|
wlr_output_schedule_done(output);
|
|
|
|
wlr_output_schedule_done(output);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void wlr_output_update_mode(struct wlr_output *output,
|
|
|
|
|
|
|
|
struct wlr_output_mode *mode) {
|
|
|
|
|
|
|
|
output->current_mode = mode;
|
|
|
|
|
|
|
|
if (mode != NULL) {
|
|
|
|
|
|
|
|
wlr_output_update_custom_mode(output, mode->width, mode->height,
|
|
|
|
|
|
|
|
mode->refresh);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
wlr_output_update_custom_mode(output, 0, 0, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_output_set_transform(struct wlr_output *output,
|
|
|
|
void wlr_output_set_transform(struct wlr_output *output,
|
|
|
|
enum wl_output_transform transform) {
|
|
|
|
enum wl_output_transform transform) {
|
|
|
|
wlr_output_state_set_transform(&output->pending, transform);
|
|
|
|
wlr_output_state_set_transform(&output->pending, transform);
|
|
|
|