ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/DashInterface/DashInterface.cpp
(Generate patch)

Comparing DashInterface/DashInterface.cpp (file contents):
Revision 44 by douglas, 2008-03-06T15:21:03-08:00 vs.
Revision 46 by douglas, 2008-03-06T19:47:57-08:00

# Line 53 | Line 53 | class DashInterface
53  
54          void Mode_(bool change = false)
55          {
56 +                if (mode != Menu)
57 +                {
58 +                        char when[16];
59 +
60 +                        std::strftime(when, sizeof (when), "%l:%M:%S %p %Z", std::localtime(now));
61 +
62 +                        display.Set(2, 0, when);
63 +                }
64 +
65                  switch (mode)
66                  {
67                  case Uname:
# Line 103 | Line 112 | class DashInterface
112                  case Menu:
113                          if (change)
114                          {
115 +                                display.SetCursorPosition(19, 0);
116                                  display.SetCursorStyle(Display::InvertingBlinkingBlock);
117  
118                                  append = true;
# Line 235 | Line 245 | update:                        Mode_(change);
245                                  switch (activity)
246                                  {
247                                  case Display::UpPress:
238                                        return (++*list).Render();
239                                case Display::DownPress:
248                                          return (--*list).Render();
249 +                                case Display::DownPress:
250 +                                        return (++*list).Render();
251                                  case Display::LeftPress:
252                                          list = list->Left();
253  
# Line 274 | Line 284 | public:
284                  _synchronized (displayLock)
285                  {
286                          display.Clear();
287 +                        display.SetCursorStyle(Display::NoCursor);
288                          display.SetBacklight(100);
289                          display.Set(2, 0, _B("--:--:-- -- ---"));
290  
# Line 302 | Line 313 | public:
313                          {
314                                  now = Timing::GetTimeOfDay();
315  
305                                if (mode != Menu)
306                                {
307                                        char when[16];
308
309                                        std::strftime(when, sizeof (when), "%l:%M:%S %p %Z", std::localtime(now));
310
311                                        display.Set(2, 0, when);
312                                }
313
316                                  if (audacious.IsRunning() && audacious.IsPlaying())
317                                          if (audacious.IsPaused())
318                                          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines