#include "xpm.h"
#include "xpmi.h" /* for XpmMalloc */
-
+#include "rgbtab.h"
#ifdef FOR_MSW
/*
rect.bottom = height ;
NewGWorld( &img->gworldptr , depth , &rect , NULL , NULL , 0 ) ;
+ LockPixels( GetGWorldPixMap( img->gworldptr ) ) ;
if (img->gworldptr == NULL)
{
XDestroyImage (img);
DeleteObject(img->bitmap); /* check return ??? */
#elif macintosh
if ( img->gworldptr )
+ {
+ UnlockPixels( GetGWorldPixMap( img->gworldptr ) ) ;
DisposeGWorld( img->gworldptr ) ;
+ }
#endif
XImageFree(img);
}