mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
IconDes: Fixed issue with Rotate
git-svn-id: svn://ultimatepp.org/upp/trunk@11895 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1914188feb
commit
ea65ce7b23
2 changed files with 3 additions and 8 deletions
|
|
@ -43,13 +43,6 @@ void IconDes::SyncShow()
|
||||||
if(IsCurrent()) {
|
if(IsCurrent()) {
|
||||||
Slot& c = Current();
|
Slot& c = Current();
|
||||||
Image image = c.image;
|
Image image = c.image;
|
||||||
/* if(c.supersampling) {
|
|
||||||
int l = c.image.GetLength();
|
|
||||||
if(l > 0 && l <= 256 * 256)
|
|
||||||
image = DownSample3x(image);
|
|
||||||
else
|
|
||||||
image = IconDesImg::LargeImage();
|
|
||||||
}*/
|
|
||||||
iconshow.image = image;
|
iconshow.image = image;
|
||||||
iconshow.show_small = show_small;
|
iconshow.show_small = show_small;
|
||||||
ilist.Set(2, image);
|
ilist.Set(2, image);
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,10 @@ void IconDes::Rotate()
|
||||||
c.paste_image = RotateClockwise(c.paste_image);
|
c.paste_image = RotateClockwise(c.paste_image);
|
||||||
MakePaste();
|
MakePaste();
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
c.image = RotateClockwise(c.image);
|
c.image = RotateClockwise(c.image);
|
||||||
|
SetSelect(255);
|
||||||
|
}
|
||||||
SyncShow();
|
SyncShow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue