浏览代码

Undo Begin() return false with Alpha==0.0, misleading at the moment

ocornut 11 年之前
父节点
当前提交
c5dacee3a7
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      imgui.cpp

+ 1 - 3
imgui.cpp

@@ -2183,9 +2183,7 @@ bool Begin(const char* name, bool* open, ImVec2 size, float fill_alpha, ImGuiWin
 	}
 
 	// Return collapsed so that user can perform an early out optimisation
-	const bool hidden = g.Style.Alpha <= 0.0f;
-	const bool collapsed = window->Collapsed;
-	return hidden || !collapsed;
+	return !window->Collapsed;
 }
 
 void End()