Subversion Repositories libOLED

Rev

Rev 5 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 8
Line 17... Line 17...
17
  if (c < ' ')
17
  if (c < ' ')
18
    c = ' ';
18
    c = ' ';
19
  if (c >= ' ' && c <= 0x7f)
19
  if (c >= ' ' && c <= 0x7f)
20
    pixels = m_data[(c - ' ') * m_width + x];
20
    pixels = m_data[(c - ' ') * m_width + x];
21
  if (c == '°')
21
  if (c == '°')
22
    pixels = m_data[0x80 * m_width + x];
22
    pixels = m_data[(0x80-' ')* m_width + x];
23
 
23
 
24
  char v = (pixels >> y) & 1;
24
  char v = (pixels >> y) & 1;
25
  return v;
25
  return v;
26
}
26
}
27
 
27