mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
Introduce fractional scaling
This commit is contained in:
parent
23fb663ea4
commit
51db087210
10 changed files with 24 additions and 20 deletions
|
|
@ -270,7 +270,7 @@ static int config_ini_handler(void *user, const char *section, const char *name,
|
|||
} else if (strcmp(name, "y") == 0) {
|
||||
oc->y = strtol(value, NULL, 10);
|
||||
} else if (strcmp(name, "scale") == 0) {
|
||||
oc->scale = strtol(value, NULL, 10);
|
||||
oc->scale = strtof(value, NULL);
|
||||
assert(oc->scale >= 1);
|
||||
} else if (strcmp(name, "rotate") == 0) {
|
||||
if (strcmp(value, "normal") == 0) {
|
||||
|
|
|
|||
|
|
@ -459,11 +459,10 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) {
|
|||
|
||||
struct roots_output *output;
|
||||
wl_list_for_each(output, &seat->input->server->desktop->outputs, link) {
|
||||
if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager,
|
||||
output->wlr_output->scale)) {
|
||||
float scale = output->wlr_output->scale;
|
||||
if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager, scale)) {
|
||||
wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' "
|
||||
"with scale %d", output->wlr_output->name,
|
||||
output->wlr_output->scale);
|
||||
"with scale %f", output->wlr_output->name, scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue