Skip to content

Commit 5965399

Browse files
fixed windows hopefully
1 parent 100a308 commit 5965399

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

a.out.data

247 Bytes
Binary file not shown.

src/waphics.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,13 @@ void waphics_draw_image(Surface display, Vector2 position, Surface image) {
383383
// }
384384
// }
385385
// }
386+
#define MAX_SURFACE_SIZE 1000000
386387

387388
Surface waphics_surface_scale(Surface *surface, Vector2 size) {
388389
float size_x = size.x / surface->width;
389390
float size_y = size.y / surface->height;
390391

391-
uint32_t pixels[(int)(surface->width * size_x * surface->height * size_y)];
392+
uint32_t pixels[MAX_SURFACE_SIZE];
392393

393394
Surface new = waphics_surface_new(pixels, surface->width * size_x, surface->height * size_y);
394395
waphics_fill_display(new, 0xFFFFFFF);

0 commit comments

Comments
 (0)