summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-29 19:09:36 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-29 19:09:36 +0100
commit18a76c2a4a6247ef9d18de157f5dba391d8ff244 (patch)
treeeea4ebde80e33373e7652ecf601e6c5f46d007c0 /ui
parentDrop .hpp for header only things (diff)
downloadilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.bz2
ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.tar.xz
ilt-18a76c2a4a6247ef9d18de157f5dba391d8ff244.zip
Reformat with new clang-format 16
Diffstat (limited to 'ui')
-rw-r--r--ui/gameMainWindow.cpp8
-rw-r--r--ui/window.cpp7
2 files changed, 7 insertions, 8 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp
index 30cdada..a7f17dc 100644
--- a/ui/gameMainWindow.cpp
+++ b/ui/gameMainWindow.cpp
@@ -20,10 +20,10 @@
class GameMainToolbar : Mode<decltype(GameMainSelector::target)>, public Toolbar {
public:
explicit GameMainToolbar(GameMainSelector * gms_) :
- Mode<decltype(GameMainSelector::target)> {gms_->target}, Toolbar {
- {"ui/icon/network.png",
- toggle<EditNetworkOf<RailLinks>>()},
- }
+ Mode<decltype(GameMainSelector::target)> {gms_->target},
+ Toolbar {
+ {"ui/icon/network.png", toggle<EditNetworkOf<RailLinks>>()},
+ }
{
}
};
diff --git a/ui/window.cpp b/ui/window.cpp
index ad071bb..731996a 100644
--- a/ui/window.cpp
+++ b/ui/window.cpp
@@ -20,10 +20,9 @@ Window::GlewInitHelper::GlewInitHelper()
}
Window::Window(size_t width, size_t height, const std::string & title, Uint32 flags) :
- size {static_cast<int>(width), static_cast<int>(height)}, m_window {title.c_str(),
- static_cast<int>(SDL_WINDOWPOS_CENTERED),
- static_cast<int>(SDL_WINDOWPOS_CENTERED), size.x,
- size.y, flags},
+ size {static_cast<int>(width), static_cast<int>(height)},
+ m_window {title.c_str(), static_cast<int>(SDL_WINDOWPOS_CENTERED), static_cast<int>(SDL_WINDOWPOS_CENTERED), size.x,
+ size.y, flags},
glContext {m_window}, uiShader {width, height}
{
}