Skip to content

Commit 56d0e60

Browse files
committed
Adjust right-aligned printing in samples
1 parent 6e57885 commit 56d0e60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/samples_tcod.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ def on_draw(self) -> None:
11691169
)
11701170
for i in range(len(self.names)):
11711171
sample_console.print(
1172-
SAMPLE_SCREEN_WIDTH - 2,
1172+
SAMPLE_SCREEN_WIDTH - 1,
11731173
2 + i,
11741174
self.names[i],
11751175
fg=WHITE,
@@ -1533,14 +1533,14 @@ def draw_stats() -> None:
15331533
except ZeroDivisionError:
15341534
fps = 0
15351535
root_console.print(
1536-
79,
1536+
root_console.width,
15371537
46,
15381538
"last frame :%5.1f ms (%4d fps)" % (frame_length[-1] * 1000.0, fps),
15391539
fg=GREY,
15401540
alignment=libtcodpy.RIGHT,
15411541
)
15421542
root_console.print(
1543-
79,
1543+
root_console.width,
15441544
47,
15451545
"elapsed : %8d ms %5.2fs" % (time.perf_counter() * 1000, time.perf_counter()),
15461546
fg=GREY,

0 commit comments

Comments
 (0)