70 #ifdef LCD_ORIENT_PORTRAIT
88 Board_LCD_WriteData(cmd, size);
96 cmd[0] = 0xB0 | pgAddr;
97 cmd[1] = colAddr & 0x0F;
98 cmd[2] = 0x10 | (colAddr >> 4);
105 if (
cf->font->font_width_table) {
106 return cf->font->font_width_table[index];
147 #ifdef LCD_ORIENT_PORTRAIT
154 for (pg = top / 8; pg <= bottom / 8; pg ++) {
156 Board_LCD_WriteData(&fbuffer[pg][left], right - left + 1);
165 #ifdef LCD_ORIENT_PORTRAIT
173 fbuffer[y/8][x] |= 1 << (y & 7);
175 fbuffer[y/8][x] &= ~(1 << (y & 7));
190 for (i = left; i <= right; i++) {
194 for (i = top + 1; i < bottom; i++) {
206 for (i = top; i <= bottom; i++) {
207 for (j = left; j <= right; j ++) {
217 int dx = abs(x1-x0), sx = x0<x1 ? 1 : -1;
218 int dy = abs(y1-y0), sy = y0<y1 ? 1 : -1;
219 int err = (dx>dy ? dx : -dy)/2, e2;
222 while(x0 != x1 || y0 != y1){
224 if (e2 >-dx) { err -= dy; x0 += sx; }
225 if (e2 < dy) { err += dx; y0 += sy; }
268 return xPos | (yPos << 16);
271 return xPos | (yPos << 16);
273 ch -=
cf->font->first_char;
275 h =
cf->font->font_height;
276 fp =
cf->font->font_table + (ch * h);
277 for (r = 0; r < h; r++, fp++) {
279 for (c = 0; c < w; c ++, t >>= 1) {
283 LCD_Refresh(xPos, yPos, xPos + w - 1, yPos + h - 1);
284 return (xPos + w) | ((yPos + h) << 16);
291 while (str && *str) {