mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
[GTK3] Re-fix the stored values for width and height
* src/gtkutil.c (xg_frame_set_char_size) (xg_frame_set_size_and_position): Round WIDTH and HEIGHT to multiples of SCALE without adding toolbar/menubar (bug#80662).
This commit is contained in:
parent
776ee085ff
commit
07e02917ee
1 changed files with 4 additions and 4 deletions
|
|
@ -1203,8 +1203,8 @@ xg_frame_set_char_size (struct frame *f, int width, int height)
|
|||
|
||||
outer_height /= scale;
|
||||
outer_width /= scale;
|
||||
height = outer_height * scale;
|
||||
width = outer_width * scale;
|
||||
height = height / scale * scale;
|
||||
width = width / scale * scale;
|
||||
|
||||
xg_wm_set_size_hint (f, 0, 0);
|
||||
|
||||
|
|
@ -1331,8 +1331,8 @@ xg_frame_set_size_and_position (struct frame *f, int width, int height)
|
|||
|
||||
outer_height /= scale;
|
||||
outer_width /= scale;
|
||||
height = outer_height * scale;
|
||||
width = outer_width * scale;
|
||||
height = height / scale * scale;
|
||||
width = width / scale * scale;
|
||||
|
||||
x /= scale;
|
||||
y /= scale;
|
||||
|
|
|
|||
Loading…
Reference in a new issue