mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added icon for MSE in packages window;
Added resample(image,width,height), instead of always passing in images git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@806 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -541,8 +541,7 @@ void ImageSliceSelector::createBitmap() {
|
||||
// create image, resampled to fit in control
|
||||
wxSize s = GetClientSize();
|
||||
int width = s.GetWidth() - 2*border, height = s.GetHeight() - 2*border;
|
||||
Image img(width, height, false);
|
||||
resample(slice.source, img);
|
||||
Image img = resample(slice.source, width, height);
|
||||
bitmap = Bitmap(img);
|
||||
scaleX = (double)width / slice.source.GetWidth();
|
||||
scaleY = (double)height / slice.source.GetHeight();
|
||||
|
||||
Reference in New Issue
Block a user