diff options
| author | Kim F. Storm | 2003-03-16 20:48:21 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-03-16 20:48:21 +0000 |
| commit | 8e025dd53b850775ee4755482a2947a64f18c49a (patch) | |
| tree | 0cad3b7f0f0d803510e332a4d12dc84322cec579 /src | |
| parent | 6b6bd7266c28aae460bb6c2fcadc8759c4b1107c (diff) | |
| download | emacs-8e025dd53b850775ee4755482a2947a64f18c49a.tar.gz emacs-8e025dd53b850775ee4755482a2947a64f18c49a.zip | |
(FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
New macros for consolidation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h index 35aeec62052..841f027341d 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -441,8 +441,12 @@ enum | |||
| 441 | FULLSCREEN_MOVE_WAIT = 8, | 441 | FULLSCREEN_MOVE_WAIT = 8, |
| 442 | }; | 442 | }; |
| 443 | 443 | ||
| 444 | /* Return the X output data for frame F. */ | ||
| 445 | #define FRAME_X_OUTPUT(f) ((f)->output_data.w32) | ||
| 446 | |||
| 444 | /* Return the window associated with the frame F. */ | 447 | /* Return the window associated with the frame F. */ |
| 445 | #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc) | 448 | #define FRAME_W32_WINDOW(f) ((f)->output_data.w32->window_desc) |
| 449 | #define FRAME_X_WINDOW(f) ((f)->output_data.w32->window_desc) | ||
| 446 | 450 | ||
| 447 | #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) | 451 | #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel) |
| 448 | #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) | 452 | #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel) |
| @@ -459,6 +463,9 @@ enum | |||
| 459 | #define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info) | 463 | #define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info) |
| 460 | #define FRAME_X_DISPLAY_INFO(f) (&one_w32_display_info) | 464 | #define FRAME_X_DISPLAY_INFO(f) (&one_w32_display_info) |
| 461 | 465 | ||
| 466 | /* This is the `Display *' which frame F is on. */ | ||
| 467 | #define FRAME_X_DISPLAY(f) (0) | ||
| 468 | |||
| 462 | /* This is the 'font_info *' which frame F has. */ | 469 | /* This is the 'font_info *' which frame F has. */ |
| 463 | #define FRAME_W32_FONT_TABLE(f) (FRAME_W32_DISPLAY_INFO (f)->font_table) | 470 | #define FRAME_W32_FONT_TABLE(f) (FRAME_W32_DISPLAY_INFO (f)->font_table) |
| 464 | 471 | ||
| @@ -851,3 +858,12 @@ struct frame * check_x_frame (Lisp_Object); | |||
| 851 | EXFUN (Fx_display_color_p, 1); | 858 | EXFUN (Fx_display_color_p, 1); |
| 852 | EXFUN (Fx_display_grayscale_p, 1); | 859 | EXFUN (Fx_display_grayscale_p, 1); |
| 853 | int image_ascent P_ ((struct image *, struct face *)); | 860 | int image_ascent P_ ((struct image *, struct face *)); |
| 861 | |||
| 862 | #define FONT_TYPE_FOR_UNIBYTE(font, ch) \ | ||
| 863 | ((font)->bdf ? BDF_1D_FONT : ANSI_FONT) | ||
| 864 | |||
| 865 | #define FONT_TYPE_FOR_MULTIBYTE(font, ch) \ | ||
| 866 | (!(font)->bdf \ | ||
| 867 | ? UNICODE_FONT \ | ||
| 868 | : ((CHARSET_DIMENSION (CHAR_CHARSET ((ch))) == 1) \ | ||
| 869 | ? BDF_1D_FONT : BDF_2D_FONT)) | ||