浏览代码

OverlayDrawList readier for pushing elements (not exposed yet)

ocornut 10 年之前
父节点
当前提交
368d2c3568
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      imgui.cpp

+ 2 - 0
imgui.cpp

@@ -2153,6 +2153,8 @@ void ImGui::NewFrame()
     g.FrameCount += 1;
     g.FrameCount += 1;
     g.Tooltip[0] = '\0';
     g.Tooltip[0] = '\0';
     g.OverlayDrawList.Clear();
     g.OverlayDrawList.Clear();
+    g.OverlayDrawList.PushTextureID(g.IO.Fonts->TexID);
+    g.OverlayDrawList.PushClipRectFullScreen();
     g.OverlayDrawList.AddDrawCmd();
     g.OverlayDrawList.AddDrawCmd();
 
 
     // Update inputs state
     // Update inputs state