Re: render texts to a buffer/drawable

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!");
                /* OK.. We got a pixmap, use it */
> 		gc = gdk_gc_new(pixmap);


Attachment: pgpLeqAxOS7pI.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]