summaryrefslogtreecommitdiff
path: root/wx+/bitmap_button.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-08-03 12:51:45 +0000
committerB. Stack <bgstack15@gmail.com>2022-08-03 12:51:45 +0000
commit3f91181f8458cb6a6d95e25123db874875f7b259 (patch)
treec36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /wx+/bitmap_button.h
parentMerge branch '11.22' into 'master' (diff)
parentadd upstream 11.23 (diff)
downloadFreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.gz
FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.bz2
FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.zip
Merge branch 'b11.23' into 'master'11.23
add upstream 11.23 See merge request opensource-tracking/FreeFileSync!46
Diffstat (limited to 'wx+/bitmap_button.h')
-rw-r--r--wx+/bitmap_button.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/wx+/bitmap_button.h b/wx+/bitmap_button.h
index d701e64c..70f161d2 100644
--- a/wx+/bitmap_button.h
+++ b/wx+/bitmap_button.h
@@ -85,18 +85,18 @@ void setImage(wxAnyButton& button, const wxImage& img)
}
- button.SetBitmapLabel(toBitmapBundle(img));
+ button.SetBitmapLabel(toScaledBitmap(img));
//wxWidgets excels at screwing up consistently once again:
//the first call to SetBitmapLabel() *implicitly* sets the disabled bitmap, too, subsequent calls, DON'T!
- button.SetBitmapDisabled(toBitmapBundle(img.ConvertToDisabled())); //inefficiency: wxBitmap::ConvertToDisabled() implicitly converts to wxImage!
+ button.SetBitmapDisabled(toScaledBitmap(img.ConvertToDisabled())); //inefficiency: wxBitmap::ConvertToDisabled() implicitly converts to wxImage!
}
inline
void setImage(wxStaticBitmap& staticBmp, const wxImage& img)
{
- staticBmp.SetBitmap(toBitmapBundle(img));
+ staticBmp.SetBitmap(toScaledBitmap(img));
}
bgstack15