mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: Fix in MakeDragImage (fixed premultiplied alpha issue)
git-svn-id: svn://ultimatepp.org/upp/trunk@3700 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
90cc18a4b0
commit
c54819463a
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ Image MakeDragImage(const Image& arrow, Image sample)
|
|||
memset(~b, 0, sizeof(RGBA) * b.GetLength());
|
||||
Size ssz = sample.GetSize();
|
||||
Over(b, Point(2, 22), sample, sample.GetSize());
|
||||
Unmultiply(b);
|
||||
for(int y = 20; y < 96; y++) {
|
||||
RGBA *s = b[y];
|
||||
RGBA *e = s + 96;
|
||||
|
|
@ -185,6 +186,7 @@ Image MakeDragImage(const Image& arrow, Image sample)
|
|||
s += b.GetWidth();
|
||||
Swap(c1, c2);
|
||||
}
|
||||
Premultiply(b);
|
||||
GuiPlatformAdjustDragImage(b);
|
||||
Over(b, Point(0, 0), arrow, arrow.GetSize());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue