diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/button.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index edf9e590..f072ef61 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -102,8 +102,7 @@ void Button::setButtonIcon(const std::string& iconFile, int frameHeight, mButtonIcon = new Image*[BUTTON_COUNT]; for (int mode = 0; mode < BUTTON_COUNT; ++mode) { - mButtonIcon[mode] = btnIcons->getSubImage(mode * frameWidth - + (mode ? 1 : 0), 0, + mButtonIcon[mode] = btnIcons->getSubImage(mode * frameWidth, 0, frameWidth, frameHeight); } |