@@ -238,7 +238,7 @@ interface imgui_internal {
238238 fun isClippedEx (bb : Rect , id : Int? , clipEvenWhenLogged : Boolean ): Boolean {
239239
240240 val window = currentWindowRead!!
241- if (! bb. overlaps( window.clipRect))
241+ if (! (bb overlaps window.clipRect))
242242 if (id == null || id != g.activeId)
243243 if (clipEvenWhenLogged || ! g.logEnabled)
244244 return true
@@ -453,7 +453,7 @@ interface imgui_internal {
453453 dc.cursorPos.x = (pos.x + dc.indentX + dc.columnsOffsetX).i.f
454454 }
455455
456- fun pushColumnClipRect (columnIndex : Int = 1) {
456+ fun pushColumnClipRect (columnIndex : Int = - 1) {
457457
458458 val window = currentWindowRead!!
459459 val columnIndex = if (columnIndex < 0 ) window.dc.columnsCurrent else columnIndex
@@ -1566,7 +1566,7 @@ interface imgui_internal {
15661566 val rect = Rect (rectPos + Vec2 (0f , bgOffYUp - g.fontSize), rectPos + Vec2 (rectSize.x, bgOffYDn))
15671567 val clipRect_ = Rect (clipRect)
15681568 rect.clipWith(clipRect_)
1569- if (rect. overlaps( clipRect_) )
1569+ if (rect overlaps clipRect_)
15701570 drawWindow.drawList.addRectFilled(rect.min, rect.max, bgColor)
15711571 }
15721572 rectPos.x = renderPos.x - renderScroll.x
@@ -1581,7 +1581,7 @@ interface imgui_internal {
15811581 val cursorIsVisible = g.inputTextState.cursorAnim <= 0f || glm.mod(g.inputTextState.cursorAnim, 1.2f ) <= 0.8f
15821582 val cursorScreenPos = renderPos + cursorOffset - renderScroll
15831583 val cursorScreenRect = Rect (cursorScreenPos.x, cursorScreenPos.y - g.fontSize + 0.5f , cursorScreenPos.x + 1f , cursorScreenPos.y - 1.5f )
1584- if (cursorIsVisible && cursorScreenRect. overlaps( Rect (clipRect) ))
1584+ if (cursorIsVisible && cursorScreenRect overlaps Rect (clipRect))
15851585 drawWindow.drawList.addLine(cursorScreenRect.min, cursorScreenRect.bl, Col .Text .u32)
15861586
15871587 /* Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor.
@@ -1835,7 +1835,7 @@ interface imgui_internal {
18351835 } else {
18361836 /* We treat ImGuiSetCondition_Once and ImGuiSetCondition_FirstUseEver the same because tree node state
18371837 are not saved persistently. */
1838- val storedValue = storage.intaaaaaaaaa (id, - 1 )
1838+ val storedValue = storage.intaaaaaaaaaaa (id, - 1 )
18391839 if (storedValue == - 1 ) {
18401840 isOpen = g.setNextTreeNodeOpenVal
18411841 storage[id] = isOpen
@@ -1844,7 +1844,7 @@ interface imgui_internal {
18441844 }
18451845 g.setNextTreeNodeOpenCond = 0
18461846 } else
1847- isOpen = storage.intaaaaaaaaa (id, if (flags has TreeNodeFlags .DefaultOpen ) 1 else 0 ) != 0 // TODO rename back
1847+ isOpen = storage.intaaaaaaaaaaa (id, if (flags has TreeNodeFlags .DefaultOpen ) 1 else 0 ) != 0 // TODO rename back
18481848
18491849 /* When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like
18501850 sensible behavior).
0 commit comments