Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jul 6, 2024
1 parent d44a973 commit dbf5146
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ jobs:
with:
pattern: imgui-godot-*_imgui*

- uses: pkdawson/setup-godot@cache-option
- uses: chickensoft-games/setup-godot@v2
with:
version: ${{ matrix.gdver }}
use-dotnet: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/godot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pkdawson/setup-godot@cache-option
- uses: chickensoft-games/setup-godot@v2
with:
version: ${{ matrix.gdver }}
use-dotnet: true
Expand Down
2 changes: 1 addition & 1 deletion gdext/src/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void Input::UpdateMousePos()
int32_t windowID = DS->get_window_at_screen_position(mousePos);
if (windowID != -1)
{
if (ImGuiViewport* vp = ImGui::FindViewportByPlatformHandle((void*)windowID))
if (ImGuiViewport* vp = ImGui::FindViewportByPlatformHandle((void*)(int64_t)windowID))
{
viewportID = vp->ID;
}
Expand Down
2 changes: 1 addition & 1 deletion gdext/src/Viewports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static void Godot_CreateWindow(ImGuiViewport* vp)
vp->RendererUserData = (void*)vprid.get_id();

int32_t windowID = vd->window->get_window_id();
vp->PlatformHandle = (void*)windowID;
vp->PlatformHandle = (void*)(int64_t)windowID;
DisplayServer::get_singleton()->window_set_input_event_callback(
Callable(ImGuiController::Instance(), "window_input_callback"),
windowID);
Expand Down

0 comments on commit dbf5146

Please sign in to comment.