summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/eve_text.h')
-rw-r--r--code/fe310/eos/eve_text.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/code/fe310/eos/eve_text.h b/code/fe310/eos/eve_text.h
index e882195..350be45 100644
--- a/code/fe310/eos/eve_text.h
+++ b/code/fe310/eos/eve_text.h
@@ -1,20 +1,19 @@
#include <stdint.h>
-typedef struct EVETextBox {
- uint16_t buf_addr;
- int buf_line_h;
- int w;
- int h;
+typedef struct EVEText {
int x;
int y;
+ int w;
+ int h;
+ uint32_t buf_addr;
+ int buf_line_h;
int buf_idx;
int line_idx;
- uint16_t dl_offset;
uint8_t bitmap_handle;
-} EVETextBox;
+} EVEText;
-void eos_eve_text_init(EVETextBox *box, uint16_t buf_addr, int buf_line_h, int w, int h, int x, int y, uint8_t bitmap_handle);
-void eos_eve_text_update(EVETextBox *box);
-void eos_eve_text_draw(EVETextBox *box);
-void eos_eve_text_putc(EVETextBox *box, int c);
-void eos_eve_text_newline(EVETextBox *box); \ No newline at end of file
+void eos_eve_text_init(EVEText *box, int x, int y, int w, int h, uint8_t bitmap_handle, uint32_t mem_addr, int buf_line_h, uint32_t *mem_next);
+void eos_eve_text_draw(EVEText *box);
+void eos_eve_text_update(EVEText *box);
+void eos_eve_text_putc(EVEText *box, int c);
+void eos_eve_text_newline(EVEText *box);