mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
X11 SetSurface now fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@1545 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
61c0c32e37
commit
c3c267b2ae
1 changed files with 2 additions and 1 deletions
|
|
@ -58,8 +58,9 @@ void SetSurface(SystemDraw& w, const Rect& dest, const RGBA *pixels, Size srcsz,
|
|||
XInitImage(&ximg);
|
||||
Drawable dw = w.GetDrawable();
|
||||
GC gc = XCreateGC(Xdisplay, dw, 0, 0);
|
||||
Point p = dest.TopLeft() + w.GetOffset();
|
||||
XPutImage(Xdisplay, dw, gc, &ximg, srcoff.x, srcoff.y,
|
||||
dest.left, dest.top, dest.GetWidth(), dest.GetHeight());
|
||||
p.x, p.y, dest.GetWidth(), dest.GetHeight());
|
||||
XFreeGC(Xdisplay, gc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue