Actions
Feature #161
closedshow information on two lines
Description
Hi
Currently this plugin can show information only on one single line. With following patch it is possible to have a second line.
The content of this additional line should be target of further enhancements.
greets
Sven
Files
Updated by anbr about 15 years ago
- Due date set to 09/29/2009
- Status changed from New to Resolved
- Assignee set to anbr
- % Done changed from 0 to 100
- Estimated time set to 3:00 h
Thanks, i apply your patch with 3c26d247.
FYI: i have two memory leaks removed. (buffer / firstline)
+ if (theSetup.m_bTwoLineMode && (m_eWatchMode >= eReplayNormal) ) { + time_t ts = time(NULL); + struct tm l; + localtime_r(&ts, &l); + + char* buffer = new char[20]; + sprintf(buffer, "%d:%d", l.tm_hour, l.tm_min); + firstLine = new cString(buffer);; + }
Regards Andreas
Actions