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