X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fx11.c;h=6c2942d1f00b5128fdd447aa33a470cf2d2e6577;hb=14089dac2cbe56e563863e1e5adb8847944fd262;hp=7d45a493a28b771e3a4c6bb3dc1183b92aa9d7b2;hpb=7891415ca10eb882506eaaa3bca720ec75723a0e;p=rocksndiamonds.git diff --git a/src/libgame/x11.c b/src/libgame/x11.c index 7d45a493..6c2942d1 100644 --- a/src/libgame/x11.c +++ b/src/libgame/x11.c @@ -1,7 +1,7 @@ /*********************************************************** * Artsoft Retro-Game Library * *----------------------------------------------------------* -* (c) 1994-2001 Artsoft Entertainment * +* (c) 1994-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -254,6 +254,8 @@ Bitmap *X11LoadImage(char *filename) Bitmap *new_bitmap = CreateBitmapStruct(); char *error = "Read_PCX_to_Pixmap(): %s '%s'"; int pcx_err; + 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); @@ -296,6 +298,12 @@ Bitmap *X11LoadImage(char *filename) 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;