mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Initial pass on HiDPI support
This commit is contained in:
parent
a5af3bce98
commit
6ea02f3064
6 changed files with 34 additions and 14 deletions
|
|
@ -867,6 +867,9 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
|
|||
struct wlc_size new_size = { .w = oc->width, .h = oc->height };
|
||||
wlc_output_set_resolution(output->handle, &new_size);
|
||||
}
|
||||
if (oc && oc->scale != 1) {
|
||||
wlc_output_set_scale(output->handle, (int32_t)oc->scale);
|
||||
}
|
||||
|
||||
// Find position for it
|
||||
if (oc && oc->x != -1 && oc->y != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue