]> code.delx.au - gnu-emacs/commitdiff
* src/xfns.c (x_set_menu_bar_lines): Fix calls to x_clear_area.
authorWolfgang Jenkner <wjenkner@inode.at>
Fri, 29 May 2015 13:14:27 +0000 (15:14 +0200)
committerWolfgang Jenkner <wjenkner@inode.at>
Fri, 29 May 2015 14:29:18 +0000 (16:29 +0200)
The signature was changed in the cairo branch, merged on 2015-05-23.
This oversight broke compiling only the non-toolkit X version.

src/xfns.c

index 5ac58e9c7e0919bf93550e5fa30619ad32aa9a95..16a568e9153f8b4b346cf4419adcea9ea1be4379 100644 (file)
@@ -1084,8 +1084,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
          y = FRAME_TOP_MARGIN_HEIGHT (f);
 
          block_input ();
-         x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                       0, y, width, height);
+         x_clear_area (f, 0, y, width, height);
          unblock_input ();
        }
 
@@ -1095,8 +1094,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
          height = nlines * FRAME_LINE_HEIGHT (f) - y;
 
          block_input ();
-         x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                       0, y, width, height);
+         x_clear_area (f, 0, y, width, height);
          unblock_input ();
        }