diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/texturedbox.cc | 2 | ||||
-rw-r--r-- | plugingui/texturedbox.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugingui/texturedbox.cc b/plugingui/texturedbox.cc index c0391c7..a03eecd 100644 --- a/plugingui/texturedbox.cc +++ b/plugingui/texturedbox.cc @@ -50,6 +50,8 @@ TexturedBox::TexturedBox(ImageCache& image_cache, const std::string& filename, , dy1(dy1) , dy2(dy2) , dy3(dy3) + , _width(dx1 + dx2 + dx3) + , _height(dy1 + dy2 + dy3) { } diff --git a/plugingui/texturedbox.h b/plugingui/texturedbox.h index d393b22..dc84183 100644 --- a/plugingui/texturedbox.h +++ b/plugingui/texturedbox.h @@ -101,14 +101,14 @@ private: Texture seg_h; Texture seg_i; - std::size_t _width{100}; - std::size_t _height{100}; std::size_t dx1; std::size_t dx2; std::size_t dx3; std::size_t dy1; std::size_t dy2; std::size_t dy3; + std::size_t _width{100}; + std::size_t _height{100}; Colour outOfRange{0.0f, 0.0f, 0.0f, 0.0f}; }; |