diff options
| author | Dmitry Antipov | 2013-09-13 19:03:51 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-13 19:03:51 +0400 |
| commit | aad3612f9eb7280bd4db8ee697186e75b1e82765 (patch) | |
| tree | fd251b7978e9a570a6b66c93a43b0021bac0c7b7 /src/xterm.h | |
| parent | 7830899f39515bcb4938715ebf58d1ba855deb41 (diff) | |
| download | emacs-aad3612f9eb7280bd4db8ee697186e75b1e82765.tar.gz emacs-aad3612f9eb7280bd4db8ee697186e75b1e82765.zip | |
Unify FRAME_window_system_DISPLAY_INFO macros between all ports.
All of them are replaced with FRAME_DISPLAY_INFO, defined in
each port to reference the port-specific window system data.
* msdos.h (FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define.
* w32term.h (FRAME_W32_DISPLAY_INFO, FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define. Adjust users.
* xterm.h (FRAME_X_DISPLAY_INFO): Remove.
(FRAME_DISPLAY_INFO): Define. Adjust users.
* frame.h (FRAME_RES_X, FRAME_RES_Y): Unify.
* font.c, frame.c, gtkutil.c, image.c, menu.c, msdos.c, nsfns.m:
* nsfont.m, nsterm.m, w32fns.c, w32font.c, w32menu.c, w32term.c:
* w32xfns.c, widget.c, xdisp.c, xfaces.c, xfns.c, xfont.c, xmenu.c:
* xselect.c, xterm.c: All related users changed.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xterm.h b/src/xterm.h index 2f29667684d..3c091b7afcd 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -700,20 +700,20 @@ enum | |||
| 700 | #define FRAME_BASELINE_OFFSET(f) ((f)->output_data.x->baseline_offset) | 700 | #define FRAME_BASELINE_OFFSET(f) ((f)->output_data.x->baseline_offset) |
| 701 | 701 | ||
| 702 | /* This gives the x_display_info structure for the display F is on. */ | 702 | /* This gives the x_display_info structure for the display F is on. */ |
| 703 | #define FRAME_X_DISPLAY_INFO(f) ((f)->output_data.x->display_info) | 703 | #define FRAME_DISPLAY_INFO(f) ((f)->output_data.x->display_info) |
| 704 | 704 | ||
| 705 | /* This is the `Display *' which frame F is on. */ | 705 | /* This is the `Display *' which frame F is on. */ |
| 706 | #define FRAME_X_DISPLAY(f) (FRAME_X_DISPLAY_INFO (f)->display) | 706 | #define FRAME_X_DISPLAY(f) (FRAME_DISPLAY_INFO (f)->display) |
| 707 | 707 | ||
| 708 | /* This is the `Screen *' which frame F is on. */ | 708 | /* This is the `Screen *' which frame F is on. */ |
| 709 | #define FRAME_X_SCREEN(f) (FRAME_X_DISPLAY_INFO (f)->screen) | 709 | #define FRAME_X_SCREEN(f) (FRAME_DISPLAY_INFO (f)->screen) |
| 710 | #define FRAME_X_SCREEN_NUMBER(f) XScreenNumberOfScreen (FRAME_X_SCREEN (f)) | 710 | #define FRAME_X_SCREEN_NUMBER(f) XScreenNumberOfScreen (FRAME_X_SCREEN (f)) |
| 711 | 711 | ||
| 712 | /* This is the Visual which frame F is on. */ | 712 | /* This is the Visual which frame F is on. */ |
| 713 | #define FRAME_X_VISUAL(f) FRAME_X_DISPLAY_INFO (f)->visual | 713 | #define FRAME_X_VISUAL(f) FRAME_DISPLAY_INFO (f)->visual |
| 714 | 714 | ||
| 715 | /* This is the Colormap which frame F uses. */ | 715 | /* This is the Colormap which frame F uses. */ |
| 716 | #define FRAME_X_COLORMAP(f) FRAME_X_DISPLAY_INFO (f)->cmap | 716 | #define FRAME_X_COLORMAP(f) FRAME_DISPLAY_INFO (f)->cmap |
| 717 | 717 | ||
| 718 | /* The difference in pixels between the top left corner of the | 718 | /* The difference in pixels between the top left corner of the |
| 719 | Emacs window (including possible window manager decorations) | 719 | Emacs window (including possible window manager decorations) |
| @@ -726,20 +726,20 @@ enum | |||
| 726 | 726 | ||
| 727 | 727 | ||
| 728 | #define FRAME_XIC(f) ((f)->output_data.x->xic) | 728 | #define FRAME_XIC(f) ((f)->output_data.x->xic) |
| 729 | #define FRAME_X_XIM(f) (FRAME_X_DISPLAY_INFO (f)->xim) | 729 | #define FRAME_X_XIM(f) (FRAME_DISPLAY_INFO (f)->xim) |
| 730 | #define FRAME_X_XIM_STYLES(f) (FRAME_X_DISPLAY_INFO (f)->xim_styles) | 730 | #define FRAME_X_XIM_STYLES(f) (FRAME_DISPLAY_INFO (f)->xim_styles) |
| 731 | #define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style) | 731 | #define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style) |
| 732 | #define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs) | 732 | #define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs) |
| 733 | 733 | ||
| 734 | /* Value is the smallest width of any character in any font on frame F. */ | 734 | /* Value is the smallest width of any character in any font on frame F. */ |
| 735 | 735 | ||
| 736 | #define FRAME_SMALLEST_CHAR_WIDTH(F) \ | 736 | #define FRAME_SMALLEST_CHAR_WIDTH(F) \ |
| 737 | FRAME_X_DISPLAY_INFO(F)->smallest_char_width | 737 | FRAME_DISPLAY_INFO(F)->smallest_char_width |
| 738 | 738 | ||
| 739 | /* Value is the smallest height of any font on frame F. */ | 739 | /* Value is the smallest height of any font on frame F. */ |
| 740 | 740 | ||
| 741 | #define FRAME_SMALLEST_FONT_HEIGHT(F) \ | 741 | #define FRAME_SMALLEST_FONT_HEIGHT(F) \ |
| 742 | FRAME_X_DISPLAY_INFO(F)->smallest_font_height | 742 | FRAME_DISPLAY_INFO(F)->smallest_font_height |
| 743 | 743 | ||
| 744 | /* X-specific scroll bar stuff. */ | 744 | /* X-specific scroll bar stuff. */ |
| 745 | 745 | ||