diff options
| author | Karoly Lorentey | 2005-09-04 03:48:17 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-09-04 03:48:17 +0000 |
| commit | fbf349734468d48b421c3d03074bb66dfcf3115b (patch) | |
| tree | 0a7d1ee844b6c591a5a499d23e35931945106e5a /src/macterm.h | |
| parent | f0caabd962b662cccbea472995d86af718cc8d0b (diff) | |
| parent | 4b5fa40e1f1ba3cafde672863a0331311d1c2695 (diff) | |
| download | emacs-fbf349734468d48b421c3d03074bb66dfcf3115b.tar.gz emacs-fbf349734468d48b421c3d03074bb66dfcf3115b.zip | |
Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Patches applied:
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--base-0
tag of miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-474
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-1
Add CVS metadata files.
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-2
Update from CVS.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-393
Diffstat (limited to 'src/macterm.h')
| -rw-r--r-- | src/macterm.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/macterm.h b/src/macterm.h index ea5f7db6084..948fa486aba 100644 --- a/src/macterm.h +++ b/src/macterm.h | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Display module for Mac OS. | 1 | /* Display module for Mac OS. |
| 2 | Copyright (C) 2000, 2001 Free Software Foundation, Inc. | 2 | Copyright (C) 2000, 2001, 2002, 2003, 2004, |
| 3 | 2005 Free Software Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 5 | 6 | ||
| @@ -38,11 +39,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 38 | #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0) | 39 | #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0) |
| 39 | #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255) | 40 | #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255) |
| 40 | 41 | ||
| 41 | /* A black pixel in a mask bitmap/pixmap means ``draw a source | ||
| 42 | pixel''. A white pixel means ``retain the current pixel''. */ | ||
| 43 | #define PIX_MASK_DRAW(f) BLACK_PIX_DEFAULT(f) | ||
| 44 | #define PIX_MASK_RETAIN(f) WHITE_PIX_DEFAULT(f) | ||
| 45 | |||
| 46 | #define FONT_WIDTH(f) ((f)->max_bounds.width) | 42 | #define FONT_WIDTH(f) ((f)->max_bounds.width) |
| 47 | #define FONT_HEIGHT(f) ((f)->ascent + (f)->descent) | 43 | #define FONT_HEIGHT(f) ((f)->ascent + (f)->descent) |
| 48 | #define FONT_BASE(f) ((f)->ascent) | 44 | #define FONT_BASE(f) ((f)->ascent) |
| @@ -149,7 +145,7 @@ struct mac_display_info | |||
| 149 | int smallest_font_height; | 145 | int smallest_font_height; |
| 150 | 146 | ||
| 151 | /* Reusable Graphics Context for drawing a cursor in a non-default face. */ | 147 | /* Reusable Graphics Context for drawing a cursor in a non-default face. */ |
| 152 | XGCValues *scratch_cursor_gc; | 148 | GC scratch_cursor_gc; |
| 153 | 149 | ||
| 154 | /* These variables describe the range of text currently shown in its | 150 | /* These variables describe the range of text currently shown in its |
| 155 | mouse-face, together with the window they apply to. As long as | 151 | mouse-face, together with the window they apply to. As long as |
| @@ -388,7 +384,7 @@ struct mac_output { | |||
| 388 | /* Relief GCs, colors etc. */ | 384 | /* Relief GCs, colors etc. */ |
| 389 | struct relief | 385 | struct relief |
| 390 | { | 386 | { |
| 391 | XGCValues *gc; | 387 | GC gc; |
| 392 | unsigned long pixel; | 388 | unsigned long pixel; |
| 393 | int allocated_p; | 389 | int allocated_p; |
| 394 | } | 390 | } |
| @@ -598,6 +594,8 @@ EXFUN (Fx_display_color_p, 1); | |||
| 598 | EXFUN (Fx_display_grayscale_p, 1); | 594 | EXFUN (Fx_display_grayscale_p, 1); |
| 599 | EXFUN (Fx_display_planes, 1); | 595 | EXFUN (Fx_display_planes, 1); |
| 600 | extern void x_free_gcs P_ ((struct frame *)); | 596 | extern void x_free_gcs P_ ((struct frame *)); |
| 597 | extern int XParseGeometry P_ ((char *, int *, int *, unsigned int *, | ||
| 598 | unsigned int *)); | ||
| 601 | 599 | ||
| 602 | /* Defined in macterm.c. */ | 600 | /* Defined in macterm.c. */ |
| 603 | 601 | ||
| @@ -611,6 +609,7 @@ extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowPtr, char *, | |||
| 611 | unsigned long, unsigned long, | 609 | unsigned long, unsigned long, |
| 612 | unsigned int)); | 610 | unsigned int)); |
| 613 | extern void XFreePixmap P_ ((Display *, Pixmap)); | 611 | extern void XFreePixmap P_ ((Display *, Pixmap)); |
| 612 | extern GC XCreateGC P_ ((Display *, Window, unsigned long, XGCValues *)); | ||
| 614 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); | 613 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); |
| 615 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); | 614 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); |
| 616 | extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long)); | 615 | extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long)); |