+2008-05-04 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
+
2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
attributes only for local files.
* w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
- default to Qlocal.
+ default to Qlocal.
2008-04-22 Juri Linkov <juri@jurta.org>
(font_put_extra): New function.
(font_parse_xlfd): Fix handling of font size. Add QCdpi property
in FONT_EXTRA.
- (font_parse_fcname): Handle enumenrated values (e.g. bold). Fix
- handling font size. Add QCname property that contains only
+ (font_parse_fcname): Handle enumenrated values (e.g. bold).
+ Fix handling font size. Add QCname property that contains only
unknown properties.
(font_score): Change argument. Change caller. Pay attention to
FONT_PIXEL_SIZE_QUANTUM.
seconds = build_string (buffer);
m = seconds_left / 60;
- _snprintf (buffer, 16, "%d", m);
+ _snprintf (buffer, 16, "%ld", m);
minutes = build_string (buffer);
h = seconds_left / 3600.0;
_snprintf (buffer, 16, "%3.1f", h);
hours = build_string (buffer);
- _snprintf (buffer, 16, "%1.0f:%d", h, m);
+ _snprintf (buffer, 16, "%ld:%02ld", m / 60, m % 60);
remain = build_string (buffer);
}
sequences[0] = Fcons (make_number ('L'), line_status);