diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
commit | f570e2f2685aa43aa518c2f8578391c1847cddbe (patch) | |
tree | b9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /shared/customButton.cpp | |
parent | 3.2 (diff) | |
download | FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2 FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip |
3.3
Diffstat (limited to 'shared/customButton.cpp')
-rw-r--r-- | shared/customButton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/customButton.cpp b/shared/customButton.cpp index 40c0397f..73b9d1ee 100644 --- a/shared/customButton.cpp +++ b/shared/customButton.cpp @@ -277,17 +277,17 @@ void wxButtonWithImage::refreshButtonLabel() //wxDC::DrawLabel() unfortunately isn't working for transparent images on Linux, so we need to use custom image-concatenation if (bitmapFront.IsOk()) - writeToImage(wxImage(bitmapFront.ConvertToImage()), + writeToImage(bitmapFront.ConvertToImage(), wxPoint(0, (transparentImage.GetHeight() - bitmapFront.GetHeight()) / 2), transparentImage); if (bitmapText.IsOk()) - writeToImage(wxImage(bitmapText.ConvertToImage()), + writeToImage(bitmapText.ConvertToImage(), wxPoint(bitmapFront.GetWidth() + m_spaceAfter, (transparentImage.GetHeight() - bitmapText.GetHeight()) / 2), transparentImage); if (bitmapBack.IsOk()) - writeToImage(wxImage(bitmapBack.ConvertToImage()), + writeToImage(bitmapBack.ConvertToImage(), wxPoint(bitmapFront.GetWidth() + m_spaceAfter + bitmapText.GetWidth() + m_spaceBefore, (transparentImage.GetHeight() - bitmapBack.GetHeight()) / 2), transparentImage); |