# HG changeset patch # User Michael Pavone # Date 1671803344 28800 # Node ID 86dfcf3f418a08ffb3fd279a8757e2b503a45c11 # Parent 3f155bc13183fd9c4b31670e572067865a363fbb Fix crash at very low resolutions diff -r 3f155bc13183 -r 86dfcf3f418a nuklear_ui/nuklear.h --- a/nuklear_ui/nuklear.h Sun Dec 18 23:32:33 2022 -0800 +++ b/nuklear_ui/nuklear.h Fri Dec 23 05:49:04 2022 -0800 @@ -11387,7 +11387,7 @@ *height = 0; int width_estimate = sqrt(pixel_area_estimate) + 0.5; *width = 128; - while (*width < width_estimate) + while (*width < width_estimate || *width < custom->w * 2) { *width *= 2; }