From 3f418bfe6e4db5dd93fe93b35b55c7af7b4a745c Mon Sep 17 00:00:00 2001 From: joshhuelsman Date: Fri, 30 Jan 2015 21:59:01 -0500 Subject: [PATCH] stbte: fix; prop button now draws 't' in default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prop button didn’t draw the ’t’ when the panel is expanded --- stb_tilemap_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_tilemap_editor.h b/stb_tilemap_editor.h index 21dabcf..cc6a398 100644 --- a/stb_tilemap_editor.h +++ b/stb_tilemap_editor.h @@ -3443,7 +3443,7 @@ static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h) n = stbte__text_width("prop:")+2; stbte__draw_text(x0,y+2, "prop:", w, STBTE__TEXTCOLOR(STBTE__cpanel)); i = w - n - 4; - if (i > 45) i = 45; + if (i > 50) i = 50; if (stbte__button(STBTE__clayer_button, propmodes[tm->propmode], x0+n,y,0,i, STBTE__ID(STBTE__layer,256), 0,0)) tm->propmode = (tm->propmode+1)%3; #endif