annotate src/gnu.h @ 1786:5179baee010b

* xfns.c (Fx_create_frame): After mapping the frame, call SET_FRAME_GARBAGED, not just plain FRAME_GARBAGED. * xfns.c (Qvertical_scrollbars): New symbol. Use it as the name of the parameter which decides whether or not the frame has scrollbars, instead of Qvertical_scrollbar. (Fx_create_frame): Adjusted accordingly. (syms_of_xfns): Initialize and staticpro Qvertical_scrollbars. (x_set_vertical_scrollbar): Renamed to x_set_vertical_scrollbars. (x_frame_parms): Adjusted accordingly. * xterm.h (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Rewritten, using: (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL): New macros. * xfns.c [not HAVE_X11] (Fx_create_frame): Use the PIXEL_TO_CHAR_{HEIGHT,WIDTH} macros to figure the frame's character size, and the CHAR_TO_PIXEL* macros for vice versa. * xterm.c (XTwrite_glyphs, XTclear_end_of_line, stufflines, scraplines, dumprectangle, pixel_to_glyph_coords, x_draw_box, clear_cursor, x_display_bar_cursor, x_draw_single_glyph, x_set_mouse_position): Use the CHAR_TO_PIXEL_* macros. * xfns.c (x_set_name): To request that the modelines be redrawn, execute the statement "update_mode_lines = 1;" instead of the silly statement "update_mode_lines;". * xfns.c (x_set_vertical_scrollbars): Don't try to set the X window's size if the frame's X window hasn't been created yet. * xfns.c (x_figure_window_size): Set the frame's vertical_scrollbar_extra field before trying to calculate its pixel dimensions. * xfns.c (x_window): When calling x_implicitly_set_name for the sake of drawing the name for the first time, remember to clear and set the frame's explicit_name member as well as its name member. (Fx_create_frame): Set the frame's explicit_name member if the user specified the name explicitly. * xfns.c (Fx_get_resource): Add CLASS argument, to give class of ATTRIBUTE. [not HAVE_X11]: Change definition of Fx_get_resource macro accordingly. (x_get_arg): Add CLASS argument, to give the class of ATTRIBUTE. Pass it along to Fx_get_resource. (x_figure_window_size, x_icon): Pass new argument to x_get_arg. (x_default_parameter): Add XCLASS argument, to give the class of XPROP. Pass it along to x_get_arg. (Fx_create_frame): Pass new args to x_get_arg and x_default_parameter. * xfns.c (Fx_create_frame): Use the same resource names and classes as xterm and Emacs 18.
author Jim Blandy <jimb@redhat.com>
date Thu, 14 Jan 1993 15:19:55 +0000
parents 0ffcf74fb8ad
children 6ad8db6dc039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
486
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 #define gnu_width 50
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 #define gnu_height 50
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 static char gnu_bits[] = {
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
4 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
5 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
6 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
7 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0e,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
8 0x00, 0x00, 0x0c, 0x00, 0x70, 0x00, 0x1e, 0x00, 0x00, 0x06, 0xc0, 0xdd,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
9 0x01, 0x34, 0x00, 0x00, 0x07, 0x3c, 0x07, 0x03, 0x34, 0x00, 0x80, 0x03,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
10 0x1f, 0x06, 0x06, 0x24, 0x00, 0x80, 0x03, 0x0f, 0x04, 0x0c, 0x26, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
11 0xc0, 0x81, 0x07, 0x00, 0x08, 0x33, 0x00, 0x60, 0xc1, 0xe3, 0x80, 0xbb,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
12 0x31, 0x00, 0x30, 0xe1, 0x33, 0xfe, 0xff, 0x18, 0x00, 0x10, 0xf1, 0x31,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
13 0xc7, 0xe3, 0x1f, 0x00, 0x10, 0xf1, 0xd8, 0x01, 0x05, 0x3c, 0x00, 0x10,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
14 0x83, 0x6c, 0x00, 0x1a, 0x40, 0x00, 0x10, 0x66, 0x36, 0x54, 0xd5, 0xff,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
15 0x00, 0x30, 0x3c, 0xdb, 0xab, 0x3a, 0x2a, 0x00, 0x60, 0x80, 0xe9, 0x54,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
16 0x35, 0x00, 0x00, 0xe0, 0xe0, 0x6c, 0xb9, 0x6a, 0x00, 0x00, 0x80, 0x37,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
17 0xb6, 0x66, 0x75, 0x00, 0x00, 0x00, 0x0f, 0xb6, 0xb4, 0x6a, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
18 0x00, 0x06, 0xb3, 0x77, 0x75, 0x00, 0x00, 0x00, 0xe1, 0x19, 0xa7, 0x6a,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
19 0x00, 0x00, 0xc0, 0xff, 0x19, 0x48, 0xf5, 0x00, 0x00, 0x40, 0x75, 0x15,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
20 0xaf, 0xea, 0x00, 0x00, 0x00, 0x70, 0x35, 0x66, 0xd5, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
21 0x58, 0x6a, 0x80, 0xea, 0x00, 0x00, 0x00, 0xdc, 0xaa, 0x80, 0xd5, 0x01,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
22 0x00, 0x00, 0x9c, 0x27, 0x03, 0xeb, 0x01, 0x00, 0x00, 0xbc, 0x65, 0x04,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
23 0xd4, 0x01, 0x00, 0x00, 0x3c, 0x55, 0xed, 0x6b, 0x03, 0x00, 0x00, 0x3e,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
24 0xcd, 0x2a, 0x3e, 0x02, 0x00, 0x00, 0x7e, 0xb9, 0x2a, 0xb8, 0x03, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
25 0x00, 0x7c, 0x93, 0x3d, 0x91, 0x03, 0x00, 0x00, 0x7c, 0x76, 0x77, 0x96,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
26 0x01, 0x00, 0x00, 0xf8, 0x6d, 0xf6, 0xc4, 0x01, 0x00, 0x00, 0xf8, 0xdd,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
27 0xfe, 0xc3, 0x01, 0x00, 0x00, 0xf0, 0xb1, 0xfd, 0xfc, 0x01, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
28 0xd0, 0x2f, 0xe7, 0xc1, 0x00, 0x00, 0x00, 0xc0, 0x4f, 0xe6, 0x61, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
29 0x00, 0x00, 0x80, 0xff, 0xf6, 0x7f, 0x00, 0x00, 0x00, 0x80, 0xfe, 0x1c,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
30 0x3e, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
31 0xf8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
32 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
33 0x00, 0x00};