diff options
| author | Jan D | 2015-04-12 14:00:09 +0200 |
|---|---|---|
| committer | Jan D | 2015-04-12 14:00:09 +0200 |
| commit | a3f1b3d53032adbbccbfba8de6d2a70fe7211de3 (patch) | |
| tree | 4d3ac2ff837bc5dce103a7f8881b369c15cea5e2 | |
| parent | c744c8a8fc2ddea0f3e7d510f1a3c98876c51c05 (diff) | |
| download | emacs-a3f1b3d53032adbbccbfba8de6d2a70fe7211de3.tar.gz emacs-a3f1b3d53032adbbccbfba8de6d2a70fe7211de3.zip | |
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.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xterm.c | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cc9ffa8fea7..6afc05e0d9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,10 @@ | |||
| 1 | 2015-04-12 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2015-04-12 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * xterm.c (x_draw_image_glyph_string): Added missing USE_CAIRO. | 3 | * xterm.c (x_draw_image_glyph_string): Added missing USE_CAIRO. |
| 4 | (x_free_cr_resources): Renamed from x_prepare_for_xlibdraw. | ||
| 5 | (x_cr_draw_frame, x_cr_export_frames, x_shift_glyphs_for_insert) | ||
| 6 | (x_free_frame_resources): Rename x_prepare_for_xlibdraw to | ||
| 7 | x_free_cr_resources. | ||
| 4 | 8 | ||
| 5 | * image.c (get_spec_bg_or_alpha_as_argb) | 9 | * image.c (get_spec_bg_or_alpha_as_argb) |
| 6 | (create_cairo_image_surface): New functions when USE_CAIRO. | 10 | (create_cairo_image_surface): New functions when USE_CAIRO. |
diff --git a/src/xterm.c b/src/xterm.c index aba700d71f2..6e7ef366d5f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -329,7 +329,7 @@ record_event (char *locus, int type) | |||
| 329 | 329 | ||
| 330 | #endif | 330 | #endif |
| 331 | 331 | ||
| 332 | static void x_prepare_for_xlibdraw (struct frame *); | 332 | static void x_free_cr_resources (struct frame *); |
| 333 | static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int); | 333 | static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int); |
| 334 | static void x_reset_clip_rectangles (struct frame *, GC); | 334 | static void x_reset_clip_rectangles (struct frame *, GC); |
| 335 | static void x_fill_rectangle (struct frame *, GC, int, int, int, int); | 335 | 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) | |||
| 574 | width = FRAME_PIXEL_WIDTH (f); | 574 | width = FRAME_PIXEL_WIDTH (f); |
| 575 | height = FRAME_PIXEL_HEIGHT (f); | 575 | height = FRAME_PIXEL_HEIGHT (f); |
| 576 | 576 | ||
| 577 | x_prepare_for_xlibdraw (f); | 577 | x_free_cr_resources (f); |
| 578 | FRAME_CR_CONTEXT (f) = cr; | 578 | FRAME_CR_CONTEXT (f) = cr; |
| 579 | x_clear_area (f, 0, 0, width, height); | 579 | x_clear_area (f, 0, 0, width, height); |
| 580 | expose_frame (f, 0, 0, width, height); | 580 | expose_frame (f, 0, 0, width, height); |
| @@ -662,7 +662,7 @@ x_cr_export_frames (Lisp_Object frames, cairo_surface_type_t surface_type) | |||
| 662 | QUIT; | 662 | QUIT; |
| 663 | 663 | ||
| 664 | block_input (); | 664 | block_input (); |
| 665 | x_prepare_for_xlibdraw (f); | 665 | x_free_cr_resources (f); |
| 666 | FRAME_CR_CONTEXT (f) = cr; | 666 | FRAME_CR_CONTEXT (f) = cr; |
| 667 | x_clear_area (f, 0, 0, width, height); | 667 | x_clear_area (f, 0, 0, width, height); |
| 668 | expose_frame (f, 0, 0, width, height); | 668 | expose_frame (f, 0, 0, width, height); |
| @@ -702,7 +702,7 @@ x_cr_export_frames (Lisp_Object frames, cairo_surface_type_t surface_type) | |||
| 702 | #endif /* USE_CAIRO */ | 702 | #endif /* USE_CAIRO */ |
| 703 | 703 | ||
| 704 | static void | 704 | static void |
| 705 | x_prepare_for_xlibdraw (struct frame *f) | 705 | x_free_cr_resources (struct frame *f) |
| 706 | { | 706 | { |
| 707 | #ifdef USE_CAIRO | 707 | #ifdef USE_CAIRO |
| 708 | if (f == NULL) | 708 | if (f == NULL) |
| @@ -710,7 +710,7 @@ x_prepare_for_xlibdraw (struct frame *f) | |||
| 710 | Lisp_Object rest, frame; | 710 | Lisp_Object rest, frame; |
| 711 | FOR_EACH_FRAME (rest, frame) | 711 | FOR_EACH_FRAME (rest, frame) |
| 712 | if (FRAME_X_P (XFRAME (frame))) | 712 | if (FRAME_X_P (XFRAME (frame))) |
| 713 | x_prepare_for_xlibdraw (XFRAME (frame)); | 713 | x_free_cr_resources (XFRAME (frame)); |
| 714 | } | 714 | } |
| 715 | else | 715 | else |
| 716 | { | 716 | { |
| @@ -3664,7 +3664,7 @@ x_draw_glyph_string (struct glyph_string *s) | |||
| 3664 | static void | 3664 | static void |
| 3665 | x_shift_glyphs_for_insert (struct frame *f, int x, int y, int width, int height, int shift_by) | 3665 | x_shift_glyphs_for_insert (struct frame *f, int x, int y, int width, int height, int shift_by) |
| 3666 | { | 3666 | { |
| 3667 | x_prepare_for_xlibdraw (f); | 3667 | x_free_cr_resources (f); |
| 3668 | XCopyArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), FRAME_X_WINDOW (f), | 3668 | XCopyArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), FRAME_X_WINDOW (f), |
| 3669 | f->output_data.x->normal_gc, | 3669 | f->output_data.x->normal_gc, |
| 3670 | x, y, width, height, | 3670 | x, y, width, height, |
| @@ -11035,7 +11035,7 @@ x_free_frame_resources (struct frame *f) | |||
| 11035 | free_frame_xic (f); | 11035 | free_frame_xic (f); |
| 11036 | #endif | 11036 | #endif |
| 11037 | 11037 | ||
| 11038 | x_prepare_for_xlibdraw (f); | 11038 | x_free_cr_resources (f); |
| 11039 | #ifdef USE_X_TOOLKIT | 11039 | #ifdef USE_X_TOOLKIT |
| 11040 | if (f->output_data.x->widget) | 11040 | if (f->output_data.x->widget) |
| 11041 | { | 11041 | { |