diff --git a/src/main.cpp b/src/main.cpp index bcef6aa..774d82c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -342,7 +342,7 @@ void BL::Launcher::create_window() window = SDL_CreateWindow(PROJECT_NAME, dm->w, dm->h, - SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS + SDL_WINDOW_FULLSCREEN ); if (!window) BL::logger::critical("Could not create window (SDL Error: {})", SDL_GetError()); diff --git a/src/menu_highlight.cpp b/src/menu_highlight.cpp index 8a3e06a..fc11850 100644 --- a/src/menu_highlight.cpp +++ b/src/menu_highlight.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "image.hpp" @@ -22,18 +23,18 @@ void BL::MenuHighlight::render_surface(BL::SVGRasterizer &rasterizer, int w, int int h_inner = h - 2*t; int rx_outter = (int) std::round((float) w * MENU_HIGHLIGHT_RX); int rx_inner = rx_outter / 2; - + // Render highlight SDL_Color mask_color = config.menu_highlight_color; mask_color.b & 0x01 ? mask_color.b-- : mask_color.b++; - std::string format = format_menu_highlight(w, - h, - config.menu_highlight_color, - mask_color, - w_inner, - h_inner, - t, - rx_outter, + std::string format = format_menu_highlight(w, + h, + config.menu_highlight_color, + mask_color, + w_inner, + h_inner, + t, + rx_outter, rx_inner ); SDL_Surface *highlight = rasterizer.rasterize_svg(format, -1, -1); @@ -56,7 +57,7 @@ void BL::MenuHighlight::render_surface(BL::SVGRasterizer &rasterizer, int w, int SDL_Rect blit_rect = { static_cast(std::round(shadow_offset)), static_cast(std::round(shadow_offset)), - highlight->w, + highlight->w, highlight->h }; SDL_BlitSurface(highlight, nullptr, surface, &blit_rect); diff --git a/src/sidebar_highlight.cpp b/src/sidebar_highlight.cpp index 4378310..24825a2 100644 --- a/src/sidebar_highlight.cpp +++ b/src/sidebar_highlight.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "sidebar_highlight.hpp" @@ -44,4 +45,4 @@ void BL::SidebarHighlight::render_texture() texture = renderer->create_texture(*surface); BL::free_surface(surface); surface = nullptr; -} \ No newline at end of file +}