aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Image.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/Image.c b/generic/Image.c
index 666baf9..87d1c30 100644
--- a/generic/Image.c
+++ b/generic/Image.c
@@ -439,6 +439,7 @@ ZnGetImage(WidgetInfo *wi,
if (entry != NULL) {
/*printf("Image %s déjà connue\n", image_name);*/
bits = (ImageBits *) Tcl_GetHashValue(entry);
+ return GetImageInstance(wi, bits);
}
else {
/*printf("Nouvelle Image %s\n", image_name);*/
@@ -1050,12 +1051,12 @@ SuckGlyphsFromServer(ZnWindow win,
XGCValues values;
int width, height, pixwidth;
int i, j;
- XCharStruct *charinfo;
+ XCharStruct *charinfo=NULL;
XChar2b character;
unsigned char *bitmapData = NULL;
int x, y;
- int numchars, spanLength;
- int charWidth, charHeight, maxSpanLength;
+ int numchars, spanLength=0;
+ int charWidth=0, charHeight=0, maxSpanLength;
int grabList[MAX_GLYPHS_PER_GRAB];
int glyphsPerGrab = MAX_GLYPHS_PER_GRAB;
int numToGrab, thisglyph;