emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] cairo a3f1b3d: x_free_cr_resources: Renamed from x_prepare


From: Jan D.
Subject: [Emacs-diffs] cairo a3f1b3d: x_free_cr_resources: Renamed from x_prepare_for_xlibdraw.
Date: Sun, 12 Apr 2015 12:00:51 +0000

branch: cairo
commit a3f1b3d53032adbbccbfba8de6d2a70fe7211de3
Author: Jan D <address@hidden>
Commit: Jan D <address@hidden>

    x_free_cr_resources: Renamed from x_prepare_for_xlibdraw.
    
    * src/xterm.c (x_free_cr_resources): Renamed from x_prepare_for_xlibdraw.
    (x_cr_draw_frame, x_cr_export_frames, x_shift_glyphs_for_insert)
    (x_free_frame_resources): Rename x_prepare_for_xlibdraw to
    x_free_cr_resources.
---
 src/ChangeLog |    4 ++++
 src/xterm.c   |   14 +++++++-------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index cc9ffa8..6afc05e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,10 @@
 2015-04-12  Jan Djärv  <address@hidden>
 
        * xterm.c (x_draw_image_glyph_string): Added missing USE_CAIRO.
+       (x_free_cr_resources): Renamed from x_prepare_for_xlibdraw.
+       (x_cr_draw_frame, x_cr_export_frames, x_shift_glyphs_for_insert)
+       (x_free_frame_resources): Rename x_prepare_for_xlibdraw to
+       x_free_cr_resources.
 
        * image.c (get_spec_bg_or_alpha_as_argb)
        (create_cairo_image_surface): New functions when USE_CAIRO.
diff --git a/src/xterm.c b/src/xterm.c
index aba700d..6e7ef36 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -329,7 +329,7 @@ record_event (char *locus, int type)
 
 #endif
 
-static void x_prepare_for_xlibdraw (struct frame *);
+static void x_free_cr_resources (struct frame *);
 static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int);
 static void x_reset_clip_rectangles (struct frame *, GC);
 static void x_fill_rectangle (struct frame *, GC, int, int, int, int);
@@ -574,7 +574,7 @@ x_cr_draw_frame (cairo_t *cr, struct frame *f)
   width = FRAME_PIXEL_WIDTH (f);
   height = FRAME_PIXEL_HEIGHT (f);
 
-  x_prepare_for_xlibdraw (f);
+  x_free_cr_resources (f);
   FRAME_CR_CONTEXT (f) = cr;
   x_clear_area (f, 0, 0, width, height);
   expose_frame (f, 0, 0, width, height);
@@ -662,7 +662,7 @@ x_cr_export_frames (Lisp_Object frames, 
cairo_surface_type_t surface_type)
       QUIT;
 
       block_input ();
-      x_prepare_for_xlibdraw (f);
+      x_free_cr_resources (f);
       FRAME_CR_CONTEXT (f) = cr;
       x_clear_area (f, 0, 0, width, height);
       expose_frame (f, 0, 0, width, height);
@@ -702,7 +702,7 @@ x_cr_export_frames (Lisp_Object frames, 
cairo_surface_type_t surface_type)
 #endif /* USE_CAIRO */
 
 static void
-x_prepare_for_xlibdraw (struct frame *f)
+x_free_cr_resources (struct frame *f)
 {
 #ifdef USE_CAIRO
   if (f == NULL)
@@ -710,7 +710,7 @@ x_prepare_for_xlibdraw (struct frame *f)
       Lisp_Object rest, frame;
       FOR_EACH_FRAME (rest, frame)
        if (FRAME_X_P (XFRAME (frame)))
-         x_prepare_for_xlibdraw (XFRAME (frame));
+         x_free_cr_resources (XFRAME (frame));
     }
   else
     {
@@ -3664,7 +3664,7 @@ x_draw_glyph_string (struct glyph_string *s)
 static void
 x_shift_glyphs_for_insert (struct frame *f, int x, int y, int width, int 
height, int shift_by)
 {
-  x_prepare_for_xlibdraw (f);
+  x_free_cr_resources (f);
   XCopyArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), FRAME_X_WINDOW (f),
             f->output_data.x->normal_gc,
             x, y, width, height,
@@ -11035,7 +11035,7 @@ x_free_frame_resources (struct frame *f)
        free_frame_xic (f);
 #endif
 
-      x_prepare_for_xlibdraw (f);
+      x_free_cr_resources (f);
 #ifdef USE_X_TOOLKIT
       if (f->output_data.x->widget)
        {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]