]> code.delx.au - gnu-emacs/commitdiff
Fixes to compile cairo branch without cairo. origin/old-branches/cairo
authorJan D <jan.h.d@swipnet.se>
Sat, 23 May 2015 10:27:56 +0000 (12:27 +0200)
committerJan D <jan.h.d@swipnet.se>
Sat, 23 May 2015 10:27:56 +0000 (12:27 +0200)
* src/gtkutil.c (xg_update_scrollbar_pos): x_clear_area takes frame as
first argument.

* src/xterm.c (handle_one_xevent): Surround x_cr_destroy_surface with
USE_CAIRO.

src/gtkutil.c
src/xterm.c

index 5d28b0221af57b7bbe94de24f8aac910a28dab11..a4b4331c0392582fabdfd19f797814d5eabe6a47 100644 (file)
@@ -3824,8 +3824,7 @@ xg_update_scrollbar_pos (struct frame *f,
              above.  */
          oldw += (scale - 1) * oldw;
          oldx -= (scale - 1) * oldw;
-          x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                        oldx, oldy, oldw, oldh);
+          x_clear_area (f, oldx, oldy, oldw, oldh);
         }
 
       /* GTK does not redraw until the main loop is entered again, but
index 8f595c8721490d09e714c7ff8f99da7516b6f0f3..4590e34fe8b313ce3859e648617c57462e87cc2c 100644 (file)
@@ -8326,7 +8326,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
         {
           xg_frame_resized (f, event->xconfigure.width,
                             event->xconfigure.height);
+#ifdef USE_CAIRO
           x_cr_destroy_surface (f);
+#endif
           f = 0;
         }
 #endif