diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-05 04:46:39 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-05 04:46:39 (GMT) |
commit | bffdf13f31774677807ea594324f7a8964a1ee10 (patch) | |
tree | 4b1b6848a2a8f1b3f66d319e784c6d08ddc042ab /xlib/xgc.c | |
parent | 91ae12c773a03fe4533d19a6d115deb6a4c95351 (diff) | |
parent | e35d614587b25a1a03ededdf2d04bcbfca86be70 (diff) | |
download | tk-bffdf13f31774677807ea594324f7a8964a1ee10.zip tk-bffdf13f31774677807ea594324f7a8964a1ee10.tar.gz tk-bffdf13f31774677807ea594324f7a8964a1ee10.tar.bz2 |
Change XSetDashes signature and many others to match Xorg, needed for Cygwin
Diffstat (limited to 'xlib/xgc.c')
-rw-r--r-- | xlib/xgc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -24,6 +24,7 @@ # define Region XRegion #endif +#undef TkSetRegion /* *---------------------------------------------------------------------- @@ -43,7 +44,7 @@ static TkpClipMask *AllocClipMask(GC gc) { TkpClipMask *clip_mask = (TkpClipMask*) gc->clip_mask; - + if (clip_mask == None) { clip_mask = (TkpClipMask*) ckalloc(sizeof(TkpClipMask)); gc->clip_mask = (Pixmap) clip_mask; @@ -154,7 +155,7 @@ XCreateGC( gp->clip_mask = None; if (mask & GCClipMask) { TkpClipMask *clip_mask = AllocClipMask(gp); - + clip_mask->type = TKP_CLIP_PIXMAP; clip_mask->value.pixmap = values->clip_mask; } @@ -279,7 +280,7 @@ XSetBackground( gc->background = background; } -void +int XSetDashes( Display *display, GC gc, @@ -301,6 +302,7 @@ XSetDashes( *p++ = *dash_list++; } *p = 0; + return Success; } void |