gaps: use logical_px() to work correctly on hi-dpi monitors
This commit is contained in:
parent
5b0f848a40
commit
6b658f88be
1
release-notes/changes/1-gaps-hidpi
Normal file
1
release-notes/changes/1-gaps-hidpi
Normal file
@ -0,0 +1 @@
|
||||
gaps: use logical_px() to scale pixel values to hi-dpi
|
@ -61,6 +61,11 @@ void render_con(Con *con) {
|
||||
inset.width -= inset.x;
|
||||
inset.height -= inset.y;
|
||||
|
||||
inset.x = logical_px(inset.x);
|
||||
inset.y = logical_px(inset.y);
|
||||
inset.width = logical_px(inset.width);
|
||||
inset.height = logical_px(inset.height);
|
||||
|
||||
if (con->fullscreen_mode == CF_NONE) {
|
||||
params.rect = rect_add(params.rect, inset);
|
||||
con->rect = rect_add(con->rect, inset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user