aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-19 18:32:59 +0000
committerRichard M. Stallman1994-05-19 18:32:59 +0000
commit1ad2277b682330d190c905a744f674bf89f8b9d8 (patch)
tree8520f06d28ed08a1888d771cda584758f74b366d /src
parent3f32656c46e560ae10199839b417450a9dfcc839 (diff)
downloademacs-1ad2277b682330d190c905a744f674bf89f8b9d8.tar.gz
emacs-1ad2277b682330d190c905a744f674bf89f8b9d8.zip
(setup_frame_gcs): Move cursor_bits variable out of
setup_frame_gcs and rename to setup_frame_cursor_bits.
Diffstat (limited to 'src')
-rw-r--r--src/widget.c23
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)
532 XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0); 532 XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0);
533} 533}
534 534
535static char setup_frame_cursor_bits[] =
536{
537 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
538 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
539 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
540 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
541};
542
535static void 543static void
536setup_frame_gcs (ew) 544setup_frame_gcs (ew)
537 EmacsFrame ew; 545 EmacsFrame ew;
@@ -540,14 +548,6 @@ setup_frame_gcs (ew)
540 struct frame* s = ew->emacs_frame.frame; 548 struct frame* s = ew->emacs_frame.frame;
541 Pixmap blank_stipple, blank_tile; 549 Pixmap blank_stipple, blank_tile;
542 550
543 static char cursor_bits[] =
544 {
545 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
546 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
547 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
548 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
549 };
550
551 /* We have to initialize all of our GCs to have a stipple/tile, otherwise 551 /* We have to initialize all of our GCs to have a stipple/tile, otherwise
552 XGetGCValues returns uninitialized data when we query the stipple 552 XGetGCValues returns uninitialized data when we query the stipple
553 (instead of None or something sensible) and it makes things hard. 553 (instead of None or something sensible) and it makes things hard.
@@ -559,7 +559,7 @@ setup_frame_gcs (ew)
559 559
560 blank_stipple = 560 blank_stipple =
561 XCreateBitmapFromData (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 561 XCreateBitmapFromData (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)),
562 cursor_bits, 2, 2); 562 setup_frame_cursor_bits, 2, 2);
563 563
564 /* use fg = 0, bg = 1 below, but it's irrelevant since this pixmap should 564 /* use fg = 0, bg = 1 below, but it's irrelevant since this pixmap should
565 never actually get used as a background tile! 565 never actually get used as a background tile!
@@ -567,7 +567,8 @@ setup_frame_gcs (ew)
567 blank_tile = 567 blank_tile =
568 XCreatePixmapFromBitmapData (XtDisplay(ew), 568 XCreatePixmapFromBitmapData (XtDisplay(ew),
569 RootWindowOfScreen (XtScreen (ew)), 569 RootWindowOfScreen (XtScreen (ew)),
570 cursor_bits, 2, 2, 0, 1, ew->core.depth); 570 setup_frame_cursor_bits, 2, 2, 0, 1,
571 ew->core.depth);
571 572
572 /* Normal video */ 573 /* Normal video */
573 gc_values.font = ew->emacs_frame.font->fid; 574 gc_values.font = ew->emacs_frame.font->fid;
@@ -602,7 +603,7 @@ setup_frame_gcs (ew)
602 gc_values.stipple = 603 gc_values.stipple =
603 XCreateBitmapFromData (XtDisplay (ew), 604 XCreateBitmapFromData (XtDisplay (ew),
604 RootWindowOfScreen (XtScreen (ew)), 605 RootWindowOfScreen (XtScreen (ew)),
605 cursor_bits, 16, 16); 606 setup_frame_cursor_bits, 16, 16);
606 XChangeGC (XtDisplay (ew), s->display.x->cursor_gc, 607 XChangeGC (XtDisplay (ew), s->display.x->cursor_gc,
607 (GCFont | GCForeground | GCBackground | GCGraphicsExposures 608 (GCFont | GCForeground | GCBackground | GCGraphicsExposures
608 | GCStipple | GCTile), 609 | GCStipple | GCTile),