66Window::Window (const std::string& title, WindowPosition position, u32 width, u32 height)
77 : Window{ title, static_cast <u32 >(position), static_cast <u32 >(position), width, height } { }
88
9- Window::Window (const std::string& title, u32 x , u32 y , u32 width, u32 height)
9+ Window::Window (const std::string& title, u32 x_pos , u32 y_pos , u32 width, u32 height)
1010 : m_window{ SDL_CreateWindow (
1111 title.c_str (),
12- static_cast <int >(x ),
13- static_cast <int >(y ),
12+ static_cast <int >(x_pos ),
13+ static_cast <int >(y_pos ),
1414 static_cast <int >(width),
1515 static_cast <int >(height),
1616 0
@@ -19,14 +19,14 @@ Window::Window(const std::string& title, u32 x, u32 y, u32 width, u32 height)
1919Window::Window (const std::string& title, WindowPosition position)
2020 : Window{ title, static_cast <u32 >(position), static_cast <u32 >(position) } { }
2121
22- Window::Window (const std::string& title, u32 x , u32 y ) {
22+ Window::Window (const std::string& title, u32 x_pos , u32 y_pos ) {
2323
2424 SDL_DisplayMode mode{};
2525 const int result = SDL_GetCurrentDisplayMode (0 , &mode);
2626 if (result != 0 ) {
2727 throw std::runtime_error{ " failed in getting display mode: " + std::string{ SDL_GetError () } };
2828 }
29- m_window = SDL_CreateWindow (title.c_str (), static_cast <int >(x ), static_cast <int >(y ), mode.w , mode.h , 0 );
29+ m_window = SDL_CreateWindow (title.c_str (), static_cast <int >(x_pos ), static_cast <int >(y_pos ), mode.w , mode.h , 0 );
3030 if (m_window == nullptr ) {
3131 throw std::runtime_error{ " failed in creating window: " + std::string{ SDL_GetError () } };
3232 }
0 commit comments