/***********************************************************
* Artsoft Retro-Game Library *
*----------------------------------------------------------*
-* (c) 1994-2001 Artsoft Entertainment *
+* (c) 1994-2002 Artsoft Entertainment *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
Bitmap *new_bitmap = CreateBitmapStruct();
char *error = "Read_PCX_to_Pixmap(): %s '%s'";
int pcx_err;
-
-#if defined(PLATFORM_MSDOS)
- rest(100);
-#endif
+ XGCValues clip_gc_values;
+ unsigned long clip_gc_valuemask;
pcx_err = Read_PCX_to_Pixmap(display, window->drawable, window->gc, filename,
&new_bitmap->drawable, &new_bitmap->clip_mask);
return NULL;
}
+ clip_gc_values.graphics_exposures = False;
+ clip_gc_values.clip_mask = new_bitmap->clip_mask;
+ clip_gc_valuemask = GCGraphicsExposures | GCClipMask;
+ new_bitmap->stored_clip_gc = XCreateGC(display, window->drawable,
+ clip_gc_valuemask, &clip_gc_values);
+
/* set GraphicContext inheritated from Window */
new_bitmap->gc = window->gc;