Mercurial > dwindows
comparison dwtest.c @ 2584:2acc7ba5dea0
Add HTIMER type and change dw_timer_() functions to use it.
On existing platforms, HTIMER will be int for now allowing API backward compatibility.
On new platforms, iOS and Android, these will be pointers to the timer objects.
This allows simplifying the code paths on those platforms. May change it on other
platforms such as Mac in a future major version.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 23 May 2021 21:39:25 +0000 |
parents | 3da35cd91ca7 |
children | 8253e17b20ad |
comparison
equal
deleted
inserted
replaced
2583:1d2f5c4eccc5 | 2584:2acc7ba5dea0 |
---|---|
149 | 149 |
150 int font_width = 8; | 150 int font_width = 8; |
151 int font_height=12; | 151 int font_height=12; |
152 int rows=10,width1=6,cols=80; | 152 int rows=10,width1=6,cols=80; |
153 char *current_file = NULL; | 153 char *current_file = NULL; |
154 int timerid; | 154 HTIMER timerid; |
155 int num_lines=0; | 155 int num_lines=0; |
156 int max_linewidth=0; | 156 int max_linewidth=0; |
157 int current_row=0,current_col=0; | 157 int current_row=0,current_col=0; |
158 int cursor_arrow = 1; | 158 int cursor_arrow = 1; |
159 int render_type = SHAPES_DOUBLE_BUFFERED; | 159 int render_type = SHAPES_DOUBLE_BUFFERED; |