From: Karl Heuer Date: Tue, 23 May 1995 03:04:03 +0000 (+0000) Subject: (create_frame_gcs): Cast args of XCreateGC. X-Git-Tag: emacs-19.34~3974 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f18598b5f82f208cc340e2dc4c2bbdeb79c9be8;p=emacs.git (create_frame_gcs): Cast args of XCreateGC. (setup_frame_gcs): Cast args of XCreatePixmapFromBitmapData. --- 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 */