@@ -70,6 +70,9 @@ interface imgui_window {
7070 createNewWindow(name, sizeOnFirstUse, flags)
7171 }
7272
73+ if (name.startsWith(" ##m" ))
74+ println ()
75+
7376 val currentFrame = g.frameCount
7477 val firstBeginOfTheFrame = window.lastFrameActive != currentFrame
7578 if (firstBeginOfTheFrame)
@@ -105,7 +108,7 @@ interface imgui_window {
105108 if (window.appearing)
106109 window.setWindowPosAllowFlags = window.setWindowPosAllowFlags or Cond .Appearing
107110 windowPosSetByApi = window.setWindowPosAllowFlags has g.setNextWindowPosCond
108- if (windowPosSetByApi && g.setNextWindowPosPivot.lengthSqr < 0.00001f ) {
111+ if (windowPosSetByApi && g.setNextWindowPosPivot.lengthSqr > 0.00001f ) {
109112 /* May be processed on the next frame if this is our first frame and we are measuring size
110113 FIXME: Look into removing the branch so everything can go through this same code path for consistency. */
111114 window.setWindowPosVal put g.setNextWindowPosVal
@@ -200,14 +203,14 @@ interface imgui_window {
200203
201204 // Save contents size from last frame for auto-fitting (unless explicitly specified)
202205 window.sizeContents.x = (
203- if (window.sizeContentsExplicit.x != 0. 0f ) window.sizeContentsExplicit.x
206+ if (window.sizeContentsExplicit.x != 0f ) window.sizeContentsExplicit.x
204207 else (
205- if (windowIsNew) 0. 0f
208+ if (windowIsNew) 0f
206209 else window.dc.cursorMaxPos.x - window.pos.x) + window.scroll.x).i.f
207210 window.sizeContents.y = (
208- if (window.sizeContentsExplicit.y != 0. 0f ) window.sizeContentsExplicit.y
211+ if (window.sizeContentsExplicit.y != 0f ) window.sizeContentsExplicit.y
209212 else (
210- if (windowIsNew) 0. 0f
213+ if (windowIsNew) 0f
211214 else window.dc.cursorMaxPos.y - window.pos.y) + window.scroll.y).i.f
212215
213216 // Hide popup/tooltip window when first appearing while we measure size (because we recycle them)
0 commit comments