aboutsummaryrefslogtreecommitdiff
path: root/generic/Image.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Image.c')
-rw-r--r--generic/Image.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/Image.c b/generic/Image.c
index bdfddb2..ae4ff9e 100644
--- a/generic/Image.c
+++ b/generic/Image.c
@@ -132,10 +132,10 @@ To2Power(int a)
*/
static void
InvalidateImage(ClientData client_data,
- int x __znunused,
- int y __znunused,
- int width __znunused,
- int height __znunused,
+ int x,
+ int y,
+ int width,
+ int height,
int image_width,
int image_height)
{
@@ -1206,11 +1206,11 @@ SuckGlyphsFromServer(ZnWInfo *wi,
tgvip->v0y = txf->descent - height;
tgvip->v1x = length;
tgvip->v1y = txf->descent;
- tgvip->t0x = tex_width;
- tgvip->t0y = tex_height;
+ tgvip->t0x = (GLfloat) tex_width;
+ tgvip->t0y = (GLfloat) tex_height;
tgvip->t1x = tgvip->t0x + length;
tgvip->t1y = tgvip->t0y + height;
- tgvip->advance = length;
+ tgvip->advance = (GLfloat) length;
#ifndef PTK_800
Tcl_UtfToUniChar(cur, &uni_ch);
tgvip->code = uni_ch;