various: persist seed display; fix seed 0 handling

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I349ed28a792d4de685f8468eddd33a136a6a6964
This commit is contained in:
raf 2026-04-10 13:53:05 +03:00
commit 4475e6c276
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 70 additions and 5 deletions

View file

@ -679,3 +679,18 @@ void render_message(const char *message) {
DrawText(message, text_x, text_y, font_size, WHITE);
}
void render_seed_display(unsigned int seed) {
char seed_text[64];
snprintf(seed_text, sizeof(seed_text), "Seed: %u", seed);
const int font_size = 14;
int text_width = MeasureText(seed_text, font_size);
// Position at top right with padding
int x = SCREEN_WIDTH - text_width - 10;
int y = 5;
// Draw with non-obstructive dim text color
DrawText(seed_text, x, y, font_size, TEXT_DIM);
}