|
17 | 17 | #include <boost/range/adaptor/reversed.hpp> |
18 | 18 | #include <cstdarg> |
19 | 19 |
|
20 | | -Window::Window(Window* parent, unsigned id, const DrawPoint& pos, const Extent& size, const ScaleLimPercent& scalePercentage) |
| 20 | +Window::Window(Window* parent, unsigned id, const DrawPoint& pos, const Extent& size, |
| 21 | + const ScaleLimPercent& scalePercentage) |
21 | 22 | : parent_(parent), id_(id), pos_(pos), size_(size), scalePercentage_(scalePercentage), active_(false), |
22 | 23 | visible_(true), scale_(false), limit_(false), isInMouseRelay(false), animations_(this) |
23 | 24 | { |
@@ -310,8 +311,7 @@ ctrlDeepening* Window::AddImageDeepening(unsigned id, const DrawPoint& pos, cons |
310 | 311 | ctrlEdit* Window::AddEdit(unsigned id, const DrawPoint& pos, const Extent& size, TextureColor tc, const glFont* font, |
311 | 312 | unsigned short maxlength, bool password, bool disabled, bool notify) |
312 | 313 | { |
313 | | - return AddCtrl( |
314 | | - new ctrlEdit(this, id, pos, size, tc, font, maxlength, password, disabled, notify)); |
| 314 | + return AddCtrl(new ctrlEdit(this, id, pos, size, tc, font, maxlength, password, disabled, notify)); |
315 | 315 | } |
316 | 316 |
|
317 | 317 | ctrlGroup* Window::AddGroup(unsigned id) |
@@ -377,8 +377,8 @@ ctrlProgress* Window::AddProgress(unsigned id, const DrawPoint& pos, const Exten |
377 | 377 | const std::string& tooltip, const Extent& padding, unsigned force_color, |
378 | 378 | const std::string& button_minus_tooltip, const std::string& button_plus_tooltip) |
379 | 379 | { |
380 | | - return AddCtrl(new ctrlProgress(this, id, pos, size, tc, button_minus, button_plus, maximum, |
381 | | - padding, force_color, tooltip, button_minus_tooltip, button_plus_tooltip)); |
| 380 | + return AddCtrl(new ctrlProgress(this, id, pos, size, tc, button_minus, button_plus, maximum, padding, force_color, |
| 381 | + tooltip, button_minus_tooltip, button_plus_tooltip)); |
382 | 382 | } |
383 | 383 |
|
384 | 384 | ctrlScrollBar* Window::AddScrollBar(unsigned id, const DrawPoint& pos, const Extent& size, unsigned short button_height, |
@@ -450,8 +450,7 @@ ctrlVarDeepening* Window::AddVarDeepening(unsigned id, const DrawPoint& pos, con |
450 | 450 | va_list liste; |
451 | 451 | va_start(liste, parameters); |
452 | 452 |
|
453 | | - auto* ctrl = |
454 | | - new ctrlVarDeepening(this, id, pos, size, tc, formatstr, font, color, parameters, liste); |
| 453 | + auto* ctrl = new ctrlVarDeepening(this, id, pos, size, tc, formatstr, font, color, parameters, liste); |
455 | 454 |
|
456 | 455 | va_end(liste); |
457 | 456 |
|
@@ -584,7 +583,8 @@ T_Pt Window::Scale(const T_Pt& pt, const ScaleLimPercent& scalePercentage) |
584 | 583 | void Window::Scale() |
585 | 584 | { |
586 | 585 | pos_ = ScaleWindowProp::scale(pos_, VIDEODRIVER.GetRenderSize()); |
587 | | - size_ = ScaleWindowProp::scale(size_, VIDEODRIVER.GetRenderSize(), limit_ ? scalePercentage_ : ScaleLimPercent(100, 100)); |
| 586 | + size_ = |
| 587 | + ScaleWindowProp::scale(size_, VIDEODRIVER.GetRenderSize(), limit_ ? scalePercentage_ : ScaleLimPercent(100, 100)); |
588 | 588 | } |
589 | 589 |
|
590 | 590 | template<class T_Pt> |
|
0 commit comments