mirror of
https://github.com/fltk/fltk.git
synced 2026-05-29 04:26:27 +08:00
Commits on Mar 9, 2026
Fix "Window scaling shortcut always moves window towards "initial" display on Windows" (#1371)
This commit is contained in:
@@ -1764,6 +1764,7 @@ content key keyboard layout
|
|||||||
int news = sd->screen_num_unscaled(nx + int(trueW * scale / 2), ny + int(trueH * scale / 2));
|
int news = sd->screen_num_unscaled(nx + int(trueW * scale / 2), ny + int(trueH * scale / 2));
|
||||||
if (news == -1)
|
if (news == -1)
|
||||||
news = olds;
|
news = olds;
|
||||||
|
else if (news != olds) wd->screen_num(news);
|
||||||
scale = sd->scale(news);
|
scale = sd->scale(news);
|
||||||
wd->x(int(round(nx/scale)));
|
wd->x(int(round(nx/scale)));
|
||||||
wd->y(int(round(ny/scale)));
|
wd->y(int(round(ny/scale)));
|
||||||
|
|||||||
Reference in New Issue
Block a user