+2008-03-11 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_full_name): Use floor to round.
+
2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
* sound.c (alsa_configure): Declare vol at beginning of block.
GetTextMetrics (dc, &w32_font->metrics);
- /* Cache ASCII metrics. */
w32_font->glyph_idx = ETO_GLYPH_INDEX;
+
+ /* Cache ASCII metrics. */
recompute_cached_metrics (dc, w32_font);
SelectObject (dc, old_font);
if (outline)
{
float pointsize = height * 72.0 / one_w32_display_info.resy;
- /* Round to nearest half point. */
- pointsize = round (pointsize * 2) / 2;
+ /* Round to nearest half point. floor is used, since round is not
+ supported in MS library. */
+ pointsize = floor (pointsize * 2 + 0.5) / 2;
p += sprintf (p, "-%1.1f", pointsize);
}
else