mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-14 22:03:16 -06:00
Draw: SDraw improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@6349 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0e3832a5a2
commit
f28ff72d5f
2 changed files with 4 additions and 2 deletions
|
|
@ -4,10 +4,10 @@ NAMESPACE_UPP
|
|||
|
||||
void SDraw::Init(const Rect& r)
|
||||
{
|
||||
Cy(r.GetWidth());
|
||||
Cy(r.GetHeight());
|
||||
Cloff& c = cloff.Add();
|
||||
c.clip.Add(r);
|
||||
c.offset = Point(0, 0);
|
||||
c.offset = r.TopLeft();
|
||||
}
|
||||
|
||||
void SDraw::BeginOp()
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ void SDraw::SysDrawImageOp(int x, int y, const Image& img, Color color)
|
|||
|
||||
void SDraw::DrawRectOp(int x, int y, int cx, int cy, Color color)
|
||||
{
|
||||
if(IsNull(color))
|
||||
return;
|
||||
Rect r = RectC(x, y, cx, cy);
|
||||
r += cloff.Top().offset;
|
||||
const Vector<Rect>& clip = cloff.Top().clip;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue