mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 19:49:19 +02:00
reformat: set variables to constexpr where possible
This commit is contained in:
@@ -34,7 +34,7 @@ void launcher_ui::on_window_resize(int w, int h)
|
||||
|
||||
void launcher_ui::render_()
|
||||
{
|
||||
const ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove;
|
||||
constexpr ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove;
|
||||
const float topbar_height = 50 * Global.ui_scale;
|
||||
const auto topbar_button_size = ImVec2(150 * Global.ui_scale, topbar_height - 16);
|
||||
ImGui::SetNextWindowPos(ImVec2(0, 0));
|
||||
|
||||
Reference in New Issue
Block a user