Skip to content

Commit 22174c5

Browse files
committed
typo and win32 cross compilation
1 parent b0dda46 commit 22174c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/toolchain-cross-mingw-linux.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SET(CMAKE_SYSTEM_NAME Windows)
2-
1+
set(CMAKE_SYSTEM_NAME Windows)
2+
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
33
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32/
44
/usr/share/mingw-w64/)
55

src/dx9/renderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void idx9::Renderer::pre_frame()
111111
D3DCOLOR clear_col_dx = D3DCOLOR_RGBA(static_cast<int>(clear_color.x * 255.0f), static_cast<int>(clear_color.y * 255.0f),
112112
static_cast<int>(clear_color.z * 255.0f), static_cast<int>(clear_color.w * 255.0f));
113113
d3d_device->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, clear_col_dx, 1.0f, 0);
114-
if (d3d_device->BeginScene() < 0) { std::cerr << "Failed to begin DX9 scene\n" return;}
114+
if (d3d_device->BeginScene() < 0) { std::cerr << "Failed to begin DX9 scene\n"; return;}
115115
}
116116

117117
void idx9::Renderer::render_imgui_data(ImDrawData& draw_data)

0 commit comments

Comments
 (0)