aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/Image.c b/generic/Image.c
index a163e27..63f5daa 100644
--- a/generic/Image.c
+++ b/generic/Image.c
@@ -366,12 +366,12 @@ GetFontBitmap(ZnWindow win,
int new, size, width, height;
char str[1];
char *line;
-
+
if (!inited) {
- Tcl_InitHashTable(&font_bitmaps, (sizeof(ZnFont)) / sizeof(int));
+ Tcl_InitHashTable(&font_bitmaps, sizeof(ZnFont)/sizeof(int));
inited = 1;
}
- entry = Tcl_FindHashEntry(&font_bitmaps, (char *) &font);
+ entry = Tcl_FindHashEntry(&font_bitmaps, (char *) font);
if (entry != NULL) {
f_bits = (FontBitmap *) Tcl_GetHashValue(entry);
}
@@ -431,7 +431,7 @@ GetFontBitmap(ZnWindow win,
XFreePixmap(dpy, pix);
XFreeGC(dpy, gc);
- entry = Tcl_CreateHashEntry(&font_bitmaps, (char *) &font, &new);
+ entry = Tcl_CreateHashEntry(&font_bitmaps, (char *) font, &new);
Tcl_SetHashValue(entry, (ClientData) f_bits);
}