border the menu screens

This commit is contained in:
Evan Pratten 2021-10-02 19:18:33 -04:00
parent df7f80e31c
commit 3370b924be
3 changed files with 7 additions and 0 deletions

View File

@ -71,9 +71,11 @@ impl ScreenSpaceRender for HowToPlayScreen {
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
config: &GameConfig
) {
let screen_size = raylib.get_screen_size();
// Render the background
raylib.clear_background(Color::BLACK);
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
let screen_size = raylib.get_screen_size();

View File

@ -105,8 +105,11 @@ impl ScreenSpaceRender for MainMenuScreen {
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
config: &GameConfig,
) {
let screen_size = raylib.get_screen_size();
// Render the background
raylib.clear_background(Color::BLACK);
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
// Calculate the logo position
let screen_size = raylib.get_screen_size();

View File

@ -71,9 +71,11 @@ impl ScreenSpaceRender for OptionsScreen {
raylib: &mut crate::utilities::non_ref_raylib::HackedRaylibHandle,
config: &GameConfig
) {
let screen_size = raylib.get_screen_size();
// Render the background
raylib.clear_background(Color::BLACK);
raylib.draw_rectangle_lines(0, 0, screen_size.x as i32, screen_size.y as i32, config.colors.white);
let screen_size = raylib.get_screen_size();