diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-05-19 18:32:59 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-05-19 18:32:59 +0000 |
commit | 1ad2277b682330d190c905a744f674bf89f8b9d8 (patch) | |
tree | 8520f06d28ed08a1888d771cda584758f74b366d /src/widget.c | |
parent | 3f32656c46e560ae10199839b417450a9dfcc839 (diff) | |
download | emacs-1ad2277b682330d190c905a744f674bf89f8b9d8.tar.gz |
(setup_frame_gcs): Move cursor_bits variable out of
setup_frame_gcs and rename to setup_frame_cursor_bits.
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/widget.c b/src/widget.c index df146b681cb..bc3845c1dd5 100644 --- a/src/widget.c +++ b/src/widget.c @@ -532,6 +532,14 @@ create_frame_gcs (ew) XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); } +static char setup_frame_cursor_bits[] = +{ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + static void setup_frame_gcs (ew) EmacsFrame ew; @@ -540,14 +548,6 @@ setup_frame_gcs (ew) struct frame* s = ew->emacs_frame.frame; Pixmap blank_stipple, blank_tile; - static char cursor_bits[] = - { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }; - /* We have to initialize all of our GCs to have a stipple/tile, otherwise XGetGCValues returns uninitialized data when we query the stipple (instead of None or something sensible) and it makes things hard. @@ -559,7 +559,7 @@ setup_frame_gcs (ew) blank_stipple = XCreateBitmapFromData (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), - cursor_bits, 2, 2); + setup_frame_cursor_bits, 2, 2); /* use fg = 0, bg = 1 below, but it's irrelevant since this pixmap should never actually get used as a background tile! @@ -567,7 +567,8 @@ setup_frame_gcs (ew) blank_tile = XCreatePixmapFromBitmapData (XtDisplay(ew), RootWindowOfScreen (XtScreen (ew)), - cursor_bits, 2, 2, 0, 1, ew->core.depth); + setup_frame_cursor_bits, 2, 2, 0, 1, + ew->core.depth); /* Normal video */ gc_values.font = ew->emacs_frame.font->fid; @@ -602,7 +603,7 @@ setup_frame_gcs (ew) gc_values.stipple = XCreateBitmapFromData (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), - cursor_bits, 16, 16); + setup_frame_cursor_bits, 16, 16); XChangeGC (XtDisplay (ew), s->display.x->cursor_gc, (GCFont | GCForeground | GCBackground | GCGraphicsExposures | GCStipple | GCTile), |