Angluca / mui

microui, a tiny immediate-mode ui library
MIT License
42 stars 3 forks source link

Resize icon not being drawn #2

Closed jadonmensah closed 10 months ago

jadonmensah commented 1 year ago

Creating a window with ctx.begin_window("name", example_rect) doesn't seem to render the resize icon at the bottom right of the window, like the demo at https://floooh.github.io/sokol-html5/sgl-microui-sapp.html. Resizing still works but the icon doesn't show up.

I've tried debugging this myself, as far as I can tell the command to draw ICON_MAX isn't being made at all. All the other drawing works fine, the other icons display correctly.

jadonmensah commented 1 year ago

Not sure if this is a bug or a feature, but for anyone who sees this, adding mu_draw_icon(ctx, MU_ICON_MAX, r, ctx->style->colors[MU_COLOR_TITLETEXT]); after line 1137 in microui.c fixes it