diff --git a/game_patch/graphics/gr_font.cpp b/game_patch/graphics/gr_font.cpp index 9c1fc9e6d..159a217e7 100644 --- a/game_patch/graphics/gr_font.cpp +++ b/game_patch/graphics/gr_font.cpp @@ -366,7 +366,7 @@ void GrNewFont::draw(int x, int y, std::string_view text, rf::gr::Mode state) co for (auto ch : text) { if (ch == '\n') { pen_x = x; - y += line_spacing_; + pen_y += line_spacing_; } else { auto glyph_idx = char_map_[static_cast(ch)]; diff --git a/game_patch/graphics/legacy/gr_d3d.cpp b/game_patch/graphics/legacy/gr_d3d.cpp index e085d3f3d..b844f8b50 100644 --- a/game_patch/graphics/legacy/gr_d3d.cpp +++ b/game_patch/graphics/legacy/gr_d3d.cpp @@ -116,7 +116,7 @@ CodeInjection gr_d3d_init_error_patch{ auto text = std::format("Failed to create Direct3D device object - error {}.\n" "A critical error has occurred and the program cannot continue.\n" "Press OK to exit the program", - hr, get_d3d_error_str(hr)); + get_d3d_error_str(hr)); hr = rf::gr::d3d::d3d->CheckDeviceType(rf::gr::d3d::adapter_idx, D3DDEVTYPE_HAL, rf::gr::d3d::pp.BackBufferFormat, rf::gr::d3d::pp.BackBufferFormat, rf::gr::d3d::pp.Windowed);