Commit ee14727c authored by Jan D's avatar Jan D

Fixes to compile cairo branch without cairo.

* 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.
parent 6445ee0f
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment