| ... | ... |
@@ -113,7 +113,7 @@ set_window_size(SDL_Window *window, int w, int h) |
| 113 | 113 |
int |
| 114 | 114 |
set_size(Uint16 width, Uint16 height, int is_resize) |
| 115 | 115 |
{
|
| 116 |
- screen_resize(&uxn_screen, width, height); |
|
| 116 |
+ screen_resize(&uxn_screen, clamp(width, 1, 1024), clamp(height, 1, 1024)); |
|
| 117 | 117 |
gRect.x = PAD; |
| 118 | 118 |
gRect.y = PAD; |
| 119 | 119 |
gRect.w = uxn_screen.width; |