From 7f18598b5f82f208cc340e2dc4c2bbdeb79c9be8 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 23 May 1995 03:04:03 +0000 Subject: [PATCH] (create_frame_gcs): Cast args of XCreateGC. (setup_frame_gcs): Cast args of XCreatePixmapFromBitmapData. --- src/widget.c | 14 +++++++++----- 1 file 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 */ -- 2.39.2