Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion game_patch/graphics/gr_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char>(ch)];
Expand Down
2 changes: 1 addition & 1 deletion game_patch/graphics/legacy/gr_d3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading