On Mon, 25 Jun 2001 23:28:38 +0200, Ronald Bultje said:
You're missing at least one error check here:
> pixmap = gdk_pixmap_new(NULL, w, h, 24);
/* This can lose if the X server doesn't have 24-bit visuals */
if (!pixmap) {
sprintf(stderr,"Whoops gdk_pixmap_new blew chunks!");
return;
}
/* OK.. We got a pixmap, use it */
> gc = gdk_gc_new(pixmap);
/Valdis
Attachment:
pgpLeqAxOS7pI.pgp
Description: PGP signature