set initial height literally since we now handle centering dynamically

This commit is contained in:
Theis Pieter Hollebeek 2025-03-03 19:28:03 +01:00
parent 1830aec847
commit 099317ffc9

View File

@ -11,9 +11,6 @@ use std::time::Duration;
use super::audio::{self};
use super::ui::{GameUiCtx, Rgb, UiCtx};
const WIDTH: i32 = 1000;
const HEIGHT: i32 = 800;
fn font_texture<'font, 'a, P: AsRef<std::path::Path>, Text: AsRef<str>, C>(
font: P,
text: Text,
@ -126,7 +123,7 @@ pub fn start_game() -> Result<(), String> {
let video_subsystem = sdl_context.video()?;
let window = video_subsystem
.window("reimtris2", WIDTH as u32, HEIGHT as u32)
.window("reimtris2", 1000, 800)
.resizable()
.position_centered()
.build()