Skip to content

Commit

Permalink
Fix tmp name
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Oct 2, 2023
1 parent 5234509 commit c62954c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private void savePreference() {

public void render() {
int flags = ImGuiWindowFlags.ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags.ImGuiWindowFlags_NoMove | ImGuiWindowFlags.ImGuiWindowFlags_NoResize;
ImGui.SetNextWindowPos(ImVec2.TMP.set(0, 0));
ImGui.SetNextWindowSize(ImVec2.TMP.set(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()));
ImGui.SetNextWindowPos(ImVec2.TMP_1.set(0, 0));
ImGui.SetNextWindowSize(ImVec2.TMP_1.set(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()));
ImGui.Begin(STR_WINDOW_TITLE, null, flags);
renderContent();
ImGui.End();
Expand Down Expand Up @@ -131,10 +131,10 @@ public void renderContent() {
float posY1 = cursorPos.get_y();

if(compiling) {
ImGui.Button("##COMPILE", ImVec2.TMP.set(BTN_BUILD_WIDTH, 0));
ImGui.Button("##COMPILE", ImVec2.TMP_1.set(BTN_BUILD_WIDTH, 0));
}
else {
if(ImGui.Button(STR_BTN_COMPILE, ImVec2.TMP.set(BTN_BUILD_WIDTH, 0))) {
if(ImGui.Button(STR_BTN_COMPILE, ImVec2.TMP_1.set(BTN_BUILD_WIDTH, 0))) {
viewModel.compile(
gameJarPath.getValue(),
appClassName.getValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public static boolean drawSpinner(String id, float radius, int thickness, int co
float pos2Y = posY + sizeY;

if(itemAdd) {
ImGuiInternal.ItemSize_2(ImRect.TMP.set(posX, posY, pos2X, pos2Y), imGuiStyle.get_FramePadding().get_y());
if(!ImGuiInternal.ItemAdd(ImRect.TMP.set(posX, posY, pos2X, pos2Y), id.hashCode()))
ImGuiInternal.ItemSize_2(ImRect.TMP_1.set(posX, posY, pos2X, pos2Y), imGuiStyle.get_FramePadding().get_y());
if(!ImGuiInternal.ItemAdd(ImRect.TMP_1.set(posX, posY, pos2X, pos2Y), id.hashCode()))
return false;
}

Expand All @@ -55,7 +55,7 @@ public static boolean drawSpinner(String id, float radius, int thickness, int co
float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min);
float pathX = centerX + MathUtils.cos(a + gTime * 8) * radius;
float pathY = centerY + MathUtils.sin(a + gTime * 8) * radius;
imDrawList.PathLineTo(ImVec2.TMP.set(pathX, pathY));
imDrawList.PathLineTo(ImVec2.TMP_1.set(pathX, pathY));
}
imDrawList.PathStroke(color, 0, thickness);
return true;
Expand Down

0 comments on commit c62954c

Please sign in to comment.