mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 08:06:35 +08:00
Fl_Clock_Output depended on a time value that was the same as an
unsigned long, which is incorrect for WIN64 and VC++ 2005 (STR #1079) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -3,6 +3,9 @@ CHANGES IN FLTK 1.1.7
|
|||||||
- Documentation fixes (STR #571, STR #648, STR #692, STR
|
- Documentation fixes (STR #571, STR #648, STR #692, STR
|
||||||
#730, STR #744, STR #745, STR #931, STR #942, STR #960,
|
#730, STR #744, STR #745, STR #931, STR #942, STR #960,
|
||||||
STR #969)
|
STR #969)
|
||||||
|
- Fl_Clock_Output depended on a time value that was the
|
||||||
|
same as an unsigned long, which is incorrect for WIN64
|
||||||
|
and VC++ 2005 (STR #1079)
|
||||||
- Fl_Text_Display::wrap_mode() would crash if no buffer
|
- Fl_Text_Display::wrap_mode() would crash if no buffer
|
||||||
was associated with the widget (STR #1069)
|
was associated with the widget (STR #1069)
|
||||||
- Updated the default label and text colors of all widgets
|
- Updated the default label and text colors of all widgets
|
||||||
|
|||||||
+3
-1
@@ -119,7 +119,9 @@ void Fl_Clock_Output::value(int H, int m, int s) {
|
|||||||
void Fl_Clock_Output::value(ulong v) {
|
void Fl_Clock_Output::value(ulong v) {
|
||||||
value_ = v;
|
value_ = v;
|
||||||
struct tm *timeofday;
|
struct tm *timeofday;
|
||||||
timeofday = localtime((const time_t *)&v);
|
// Some platforms, notably Windows, now use a 64-bit time_t value...
|
||||||
|
time_t vv = (time_t)v;
|
||||||
|
timeofday = localtime(&vv);
|
||||||
value(timeofday->tm_hour, timeofday->tm_min, timeofday->tm_sec);
|
value(timeofday->tm_hour, timeofday->tm_min, timeofday->tm_sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user