We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e57885 commit 56d0e60Copy full SHA for 56d0e60
1 file changed
examples/samples_tcod.py
@@ -1169,7 +1169,7 @@ def on_draw(self) -> None:
1169
)
1170
for i in range(len(self.names)):
1171
sample_console.print(
1172
- SAMPLE_SCREEN_WIDTH - 2,
+ SAMPLE_SCREEN_WIDTH - 1,
1173
2 + i,
1174
self.names[i],
1175
fg=WHITE,
@@ -1533,14 +1533,14 @@ def draw_stats() -> None:
1533
except ZeroDivisionError:
1534
fps = 0
1535
root_console.print(
1536
- 79,
+ root_console.width,
1537
46,
1538
"last frame :%5.1f ms (%4d fps)" % (frame_length[-1] * 1000.0, fps),
1539
fg=GREY,
1540
alignment=libtcodpy.RIGHT,
1541
1542
1543
1544
47,
1545
"elapsed : %8d ms %5.2fs" % (time.perf_counter() * 1000, time.perf_counter()),
1546
0 commit comments