Skip to content

Commit 7f536a9

Browse files
committed
Fix logs overlay breaking in hires
1 parent f301a5c commit 7f536a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/draw_logs_overlay/draw_logs_overlay.gml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ function draw_logs_overlay(width, lines){
1313
line_lines[0] = ""
1414
var line_str = log_strs[array_length(log_strs) - i]
1515
var current_line = 0
16+
draw_theme_font(0, 0, 1)
1617
for (var j = 1; j <= string_length(line_str); j++) {
1718
if (string_width(line_lines[current_line] + string_char_at(line_str, j)) > width - 7) {
1819
current_line++
1920
line_lines[current_line] = ""
2021
}
2122
line_lines[current_line] += string_char_at(line_str, j)
2223
}
24+
draw_theme_font(0, 0)
2325
for (var j = 0; j <= current_line; j++) {
24-
if (i - j + current_line <= lines) draw_text(rw - width + 3, rh - lineheight * (i - j + current_line) + 2, line_lines[j])
26+
if (i - j + current_line <= lines) {
27+
if (!hires || theme != 3) draw_text(rw - width + 3, rh - lineheight * (i - j + current_line) + 2, line_lines[j])
28+
else draw_text_transformed(rw - width + 3, rh - lineheight * (i - j + current_line) + 2, line_lines[j], 0.25, 0.25, 0)
29+
}
2530
}
2631
i += current_line
2732
}

0 commit comments

Comments
 (0)