209 } |
209 } |
210 |
210 |
211 static void asc_event_window_resized(Uint32 id, Sint32 width, Sint32 height) { |
211 static void asc_event_window_resized(Uint32 id, Sint32 width, Sint32 height) { |
212 unsigned int i = asc_window_index(id); |
212 unsigned int i = asc_window_index(id); |
213 if (i < ASC_MAX_WINDOWS) { |
213 if (i < ASC_MAX_WINDOWS) { |
214 asc_vec2i dimensions = (asc_vec2i) {width, height}; |
|
215 asc_context.windows[i].resized = true; |
214 asc_context.windows[i].resized = true; |
216 asc_context.windows[i].dimensions = dimensions; |
215 asc_context.windows[i].dimensions.width = (unsigned) width; |
|
216 asc_context.windows[i].dimensions.height = (unsigned) height; |
217 } |
217 } |
218 } |
218 } |
219 |
219 |
220 bool asc_loop_next(void) { |
220 bool asc_loop_next(void) { |
221 // reset mouse motion |
221 // reset mouse motion |