X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fimage.c;h=108fd39c3fc4d80033e2748b64170bc1ee5f88a1;hb=68e816d72b11953beea9c8e2f3d7281110e3712e;hp=e267fd8099604e7005ea4144be13746c60d66f86;hpb=74c0f7de91268e40d15948f473eac51a9760b9c0;p=rocksndiamonds.git diff --git a/src/libgame/image.c b/src/libgame/image.c index e267fd80..108fd39c 100644 --- a/src/libgame/image.c +++ b/src/libgame/image.c @@ -560,7 +560,7 @@ XImageInfo *Image_to_Pixmap(Display *display, int screen, Visual *visual, XPutImage(ximageinfo->display, ximageinfo->pixmap, gc, ximage, 0, 0, 0, 0, ximage->width, ximage->height); - XDestroyImage(ximage); + X11DestroyImage(ximage); return ximageinfo; } @@ -621,8 +621,8 @@ void ZoomPixmap(Display *display, GC gc, Pixmap src_pixmap, Pixmap dst_pixmap, dst_width, dst_height); /* free temporary images */ - XDestroyImage(src_ximage); - XDestroyImage(dst_ximage); + X11DestroyImage(src_ximage); + X11DestroyImage(dst_ximage); } void freeXImage(Image *image, XImageInfo *ximageinfo) @@ -730,7 +730,7 @@ static void *Load_PCX(char *filename) if ((img_info->bitmap = LoadImage(filename)) == NULL) { - Error(ERR_WARN, "cannot read image file '%s': LoadImage() failed: %s", + Error(ERR_WARN, "cannot load image file '%s': LoadImage() failed: %s", filename, GetError()); free(img_info); return NULL;