X11 SetSurface now fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@1545 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-09-02 09:27:37 +00:00
parent 61c0c32e37
commit c3c267b2ae

View file

@ -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);
}