diff src/objects-msw.c @ 249:83b3d10dcba9 r20-5b23

Import from CVS: tag r20-5b23
author cvs
date Mon, 13 Aug 2007 10:19:09 +0200
parents 51092a27c943
children 677f6a0ee643
line wrap: on
line diff
--- a/src/objects-msw.c	Mon Aug 13 10:18:22 2007 +0200
+++ b/src/objects-msw.c	Mon Aug 13 10:19:09 2007 +0200
@@ -1050,10 +1050,10 @@
     GetTextMetrics(hdc, &metrics);
     SelectObject(hdc, holdfont);
     ReleaseDC(hwnd, hdc);
-    f->width = metrics.tmAveCharWidth;
-    f->height = metrics.tmHeight;
-    f->ascent = metrics.tmAscent;
-    f->descent = metrics.tmDescent;
+    f->width = (unsigned short) metrics.tmAveCharWidth;
+    f->height = (unsigned short) metrics.tmHeight;
+    f->ascent = (unsigned short) metrics.tmAscent;
+    f->descent = (unsigned short) metrics.tmDescent;
     f->proportional_p = (metrics.tmPitchAndFamily & TMPF_FIXED_PITCH);
   }