summaryrefslogtreecommitdiff
path: root/src/widget.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-23 03:04:03 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-23 03:04:03 +0000
commit7f18598b5f82f208cc340e2dc4c2bbdeb79c9be8 (patch)
tree2bd8c055ea931307e3d9d0401acd456b91cc81c5 /src/widget.c
parent383f77f1802655ab33b1e56614b0bf62da3526aa (diff)
downloademacs-7f18598b5f82f208cc340e2dc4c2bbdeb79c9be8.tar.gz
(create_frame_gcs): Cast args of XCreateGC.
(setup_frame_gcs): Cast args of XCreatePixmapFromBitmapData.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/widget.c b/src/widget.c
index 48810928493..853f60e0e53 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -525,14 +525,17 @@ static void
create_frame_gcs (ew)
EmacsFrame ew;
{
- struct frame* s = ew->emacs_frame.frame;
+ struct frame *s = ew->emacs_frame.frame;
s->display.x->normal_gc =
- XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0);
+ XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)),
+ (unsigned long)0, (XGCValues *)0);
s->display.x->reverse_gc =
- XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0);
+ XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)),
+ (unsigned long)0, (XGCValues *)0);
s->display.x->cursor_gc =
- XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)), 0, 0);
+ XCreateGC (XtDisplay (ew), RootWindowOfScreen (XtScreen (ew)),
+ (unsigned long)0, (XGCValues *)0);
}
static char setup_frame_cursor_bits[] =
@@ -570,7 +573,8 @@ setup_frame_gcs (ew)
blank_tile =
XCreatePixmapFromBitmapData (XtDisplay(ew),
RootWindowOfScreen (XtScreen (ew)),
- setup_frame_cursor_bits, 2, 2, 0, 1,
+ setup_frame_cursor_bits, 2, 2,
+ (unsigned long)0, (unsigned long)1,
ew->core.depth);
/* Normal video */