Unified · Split
| @@ -154,17 +154,12 @@ typedef enum { · 153 unmodified lines | |||
| 154 | } Ged_input_mode; | 154 | } Ged_input_mode; |
| 155 | 155 | ||
| 156 | typedef struct { | 156 | typedef struct { |
| 157 | Usz y; | 157 | Usz y, x, h, w; |
| 158 | Usz x; | ||
| 159 | Usz h; | ||
| 160 | Usz w; | ||
| 161 | } Ged_cursor; | 158 | } Ged_cursor; |
| 162 | 159 | ||
| 163 | void ged_cursor_init(Ged_cursor *tc) { | 160 | void ged_cursor_init(Ged_cursor *tc) { |
| 164 | tc->y = 0; | 161 | tc->x = tc->y = 0; |
| 165 | tc->x = 0; | 162 | tc->w = tc->h = 1; |
| 166 | tc->h = 1; | ||
| 167 | tc->w = 1; | ||
| 168 | } | 163 | } |
| 169 | 164 | ||
| 170 | void ged_cursor_move_relative(Ged_cursor *tc, Usz field_h, Usz field_w, | 165 | void ged_cursor_move_relative(Ged_cursor *tc, Usz field_h, Usz field_w, |