From 099317ffc9dfebaadac3b3f6b3930313244c59b0 Mon Sep 17 00:00:00 2001 From: Theis Pieter Hollebeek Date: Mon, 3 Mar 2025 19:28:03 +0100 Subject: [PATCH] set initial height literally since we now handle centering dynamically --- src/gui/sdl.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/sdl.rs b/src/gui/sdl.rs index 9c3ffc0..bca1b50 100644 --- a/src/gui/sdl.rs +++ b/src/gui/sdl.rs @@ -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, Text: AsRef, 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()