From 20f09a01a9b69663636631b4a0edb011d2e4c0cd Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Mon, 11 Aug 2014 10:12:40 +0100 Subject: [PATCH] Fixing imguiTabs() indentation problem. --- examples/common/imgui/imgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 6e5622ad..67b4bcbb 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -1076,13 +1076,13 @@ struct Imgui m_widgetY += height + DEFAULT_SPACING; uint8_t selected = _selected; - const int32_t tabWidth = m_scrollAreaInnerWidth / count; - const int32_t tabWidthHalf = m_scrollAreaInnerWidth / (count*2); + const int32_t tabWidth = m_widgetW / count; + const int32_t tabWidthHalf = m_widgetW / (count*2); const int32_t textY = yy + height/2 + int32_t(m_fonts[m_currentFontIdx].m_size)/2 - 1; drawRoundedRect( (float)m_widgetX , (float)yy-1 - , (float)m_scrollAreaInnerWidth + , (float)m_widgetW , (float)height+2 , (float)BUTTON_HEIGHT / 2 - 1 , imguiRGBA(128, 128, 128, 96)