diff --git a/src/gtkutil.c b/src/gtkutil.c index 4fc6b3e0108..8ec3d9ce9bf 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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;