Subversion Repositories libOLED

Rev

Rev 17 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17 Rev 18
Line 119... Line 119...
119
void displayDial_t::draw_value_items(int val, int dpCode, int width, int x, int y)
119
void displayDial_t::draw_value_items(int val, int dpCode, int width, int x, int y)
120
{
120
{
121
 
121
 
122
  m_display.gotoxy(x, y);
122
  m_display.gotoxy(x, y);
123
  m_display.fontDigits(medium_font, width, dpCode, val, WHITE);
123
  m_display.fontDigits(medium_font, width, dpCode, val, WHITE);
124
  m_display.gotoxy(x, y + 16);
124
  m_display.gotoxy(x, y + medium_font.height());
125
  if (m_unitStr)
125
  if (m_unitStr)
126
  {
126
  {
127
    int l = strlen(m_unitStr);
127
    int l = strlen(m_unitStr);
128
    if (l > 4)
128
    if (l > 4)
129
      l = 4;
129
      l = 4;