Revert "gaps: use logical_px() to work correctly on hi-dpi monitors" (#5251)

This reverts commit 6b658f88be50d5251f85eaf6f838d6c67ebaac95.

The commit was misguided: the pixel values are already run through logical_px()
when parsing the configuration directive or command, so they should not be run
through another logical_px() pass at rendering time.
This commit is contained in:
Michael Stapelberg 2022-11-06 19:42:30 +01:00 committed by GitHub
parent 2a91514a31
commit 69e13d7821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -1 +0,0 @@
gaps: use logical_px() to scale pixel values to hi-dpi

View File

@ -59,11 +59,6 @@ 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);