aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-18 16:00:22 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-18 16:01:40 +0200
commit978f935947566cf524d6dabd46c374750d5864c2 (patch)
tree64b74590ec8ccbe88f140da7f90e5b112c1bda02
parent1873951f0ef769123a451c9ce694bd9ea3d09a29 (diff)
output: default scale to 1
This prevents us from telling application our scale is 0, when it has no reason to be.
-rw-r--r--types/wlr_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index e6d308f9..e3762733 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -97,6 +97,7 @@ void wlr_output_init(struct wlr_output *output,
output->impl = impl;
output->modes = list_create();
output->transform = WL_OUTPUT_TRANSFORM_NORMAL;
+ output->scale = 1;
wl_signal_init(&output->events.frame);
wl_signal_init(&output->events.resolution);
}