FreeCalypso > hg > fc-tourmaline
comparison src/cs/services/fcbm/fcbm_textout.c @ 243:35474f3a1782
FCBM: beginning of display output
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 03 May 2021 04:43:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
242:da5857b13d02 | 243:35474f3a1782 |
---|---|
1 /* | |
2 * In this module we are going to implement functions for | |
3 * displaying FCBM text strings on the LCD, abstracting | |
4 * the messy Condat display driver for our purposes. | |
5 */ | |
6 | |
7 #include "rv/rv_general.h" | |
8 #include "fcbm/fcbm_func_i.h" | |
9 #include "typedefs.h" | |
10 #include "dspl.h" | |
11 | |
12 #ifdef LSCREEN | |
13 #define FONT_HEIGHT 16 | |
14 #define FAR_END_X 175 | |
15 #else | |
16 #define FONT_HEIGHT 8 | |
17 #define FAR_END_X 95 | |
18 #endif | |
19 | |
20 void fcbm_display_init(void) | |
21 { | |
22 dspl_Init(); | |
23 dspl_set_char_type(DSPL_TYPE_ASCII); | |
24 } | |
25 | |
26 void fcbm_display_line(UINT16 row, char *text) | |
27 { | |
28 dspl_Clear(0, row * FONT_HEIGHT, FAR_END_X, | |
29 (row + 1) * FONT_HEIGHT - 1); | |
30 dspl_ScrText(0, row * FONT_HEIGHT, text, TXT_STYLE_NORMAL); | |
31 } |