mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
GetPaintRect support in SystemDraw
git-svn-id: svn://ultimatepp.org/upp/trunk@1423 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3c93d28a9b
commit
e48f20a683
13 changed files with 771 additions and 707 deletions
|
|
@ -491,9 +491,9 @@ static void PaintSizeBreak(PlotterTool& tool, double x, double y, Pointf size)
|
|||
void PathEditorCtrl::Paint(Draw& draw)
|
||||
{
|
||||
Rectf full = GetFullExtent();
|
||||
Rectf vis = ClientToUnits(draw.GetClip()) & full;
|
||||
Rect cvis = UnitsToClient(vis) & draw.GetClip();
|
||||
DrawRectMinusRect(draw, draw.GetClip(), cvis, SGray);
|
||||
Rectf vis = ClientToUnits(draw.GetPaintRect()) & full;
|
||||
Rect cvis = UnitsToClient(vis) & draw.GetPaintRect();
|
||||
DrawRectMinusRect(draw, draw.GetPaintRect(), cvis, SGray);
|
||||
if(cvis.IsEmpty())
|
||||
return;
|
||||
draw.Clip(cvis);
|
||||
|
|
@ -1877,7 +1877,7 @@ bool PathStyleMapCtrl::InEditRect(int right, int bottom, Point mouse)
|
|||
|
||||
void PathStyleMapCtrl::Paint(Draw& draw)
|
||||
{
|
||||
Rect rc = draw.GetClip();
|
||||
Rect rc = draw.GetPaintRect();
|
||||
draw.Begin();
|
||||
Size todo = ClientToRange(rc);
|
||||
for(int i = todo.cx; i < todo.cy; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue