aboutsummaryrefslogtreecommitdiff
path: root/generic/Image.c
diff options
context:
space:
mode:
authorlecoanet2002-09-18 13:00:25 +0000
committerlecoanet2002-09-18 13:00:25 +0000
commitc88950ae88f063b2a844586e05a89c30184b4636 (patch)
tree570a4a679c80bd3b1c48e3ce06d37c8e96de9528 /generic/Image.c
parent4088024e86a192c6eb2ce7aeb02936dc91936eea (diff)
downloadtkzinc-c88950ae88f063b2a844586e05a89c30184b4636.zip
tkzinc-c88950ae88f063b2a844586e05a89c30184b4636.tar.gz
tkzinc-c88950ae88f063b2a844586e05a89c30184b4636.tar.bz2
tkzinc-c88950ae88f063b2a844586e05a89c30184b4636.tar.xz
* (ZnGetBitmap): Correction de l'allocation d'une pixmap
specifique au display lors de la creation d'une bitmap (Corrige le bug d'A.Marion). * (ZnTexFontTex): Ajout du symbole euro.
Diffstat (limited to 'generic/Image.c')
-rw-r--r--generic/Image.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/generic/Image.c b/generic/Image.c
index 9569c53..dc314ee 100644
--- a/generic/Image.c
+++ b/generic/Image.c
@@ -537,6 +537,7 @@ ZnGetBitmap(WidgetInfo *wi,
line += bits->rowstride;
}
XDestroyImage(mask);
+ Tk_FreeBitmap(wi->dpy, pmap);
entry = Tcl_CreateHashEntry(&images, bitmap_name, &new);
Tcl_SetHashValue(entry, (ClientData) bits);
bits->hash = entry;
@@ -574,18 +575,10 @@ ZnGetBitmap(WidgetInfo *wi,
else {
image->i.x.dpy = wi->dpy;
image->i.x.mask_pmap = None;
- if (bits->images == NULL) {
- /*
- * For the first one, the Tk_GetBitmap call has already been done.
- */
- image->i.x.pixmap = pmap;
- }
- else {
- /*
- * Need to get a pixmap that match this dpy.
- */
- image->i.x.pixmap = Tk_GetBitmap(wi->interp, wi->win, bitmap_name);
- }
+ /*
+ * Need to get a pixmap that match this dpy.
+ */
+ image->i.x.pixmap = Tk_GetBitmap(wi->interp, wi->win, Tk_GetUid(bitmap_name));
}
image->next = bits->images;
bits->images = image;
@@ -1298,7 +1291,7 @@ ZnTexFontTex(ZnTexFontInfo tfi)
{
TexFontInfo *this = (TexFontInfo *) tfi;
TexFont *txf = this->txf;
- unsigned char *glisto = "\t\x14\x15\x16\x17 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijmklmnopqrstuvwxyz{|}~°ΐΒΗΘΙΚΛΞΟΤΩΫάΰβηθικλξοτωϋό~`";
+ unsigned char *glisto = "\t\x14\x15\x16\x17 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijmklmnopqrstuvwxyz{|}~°ΐΒΗΘΙΚΛΞΟΤΩΫάΰβηθικλξοτωϋό~`~";
unsigned char *glist=NULL, *glist2=NULL;
TexGlyphInfo *tgi;
int i, j;