Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Feb 2, 2024
1 parent ac94ccc commit 01e83c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MainApp extends ImGuiRenderer {
@Override
public void show() {
super.show();
ImGui.GetIO().set_ConfigFlags(ImGuiConfigFlags.ImGuiConfigFlags_DockingEnable);
ImGui.GetIO().ConfigFlags(ImGuiConfigFlags.ImGuiConfigFlags_DockingEnable);
// Viewport inputs not working
// ImGui.GetIO().set_ConfigFlags(ImGuiConfigFlags.ImGuiConfigFlags_DockingEnable | ImGuiConfigFlags.ImGuiConfigFlags_DockingEnable));
ImGui.GetIO().SetDockingFlags(false, false, false, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ public void render() {
ImGui.PopStyleColor();
boolean beginChild = ImGui.BeginChild(beginID, ImVec2.TMP_1.set(0, -ImGui.GetFrameHeightWithSpacing()), false, ImGuiWindowFlags.ImGuiWindowFlags_NoMove);
if(beginChild) {
float GetWindowContentRegionWidth = ImGui.GetWindowContentRegionMax().get_x() - ImGui.GetWindowContentRegionMin().get_x();
float GetWindowContentRegionWidth = ImGui.GetWindowContentRegionMax().x() - ImGui.GetWindowContentRegionMin().x();
windowWidth = (int)GetWindowContentRegionWidth;
windowHeight = (int)ImGui.GetWindowHeight();

ImVec2 winPos = ImGui.GetWindowPos();
windowX = (int)winPos.get_x();
windowY = (int)winPos.get_y();
windowX = (int)winPos.x();
windowY = (int)winPos.y();

if(input.needsFocus())
ImGui.SetWindowFocus();
Expand Down

0 comments on commit 01e83c4

Please sign in to comment.