Commit 9b2d22a7 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

updateRect у graphics

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56406 954022d7-b5bf-4e40-9824-e11837661b57
parent a9bf5f3b
This diff is collapsed.
......@@ -784,6 +784,16 @@ CImageShape.prototype =
draw: function(graphics, transform)
{
if(graphics.updatedRect)
{
var rect = graphics.updatedRect;
var bounds = this.bounds;
if(bounds.x > rect.x + rect.w
|| bounds.y > rect.y + rect.h
|| bounds.x + bounds.w < rect.x
|| bounds.y + bounds.h < rect.y)
return;
}
var _transform = transform ? transform :this.transform;
graphics.SetIntegerGrid(false);
graphics.transform3(_transform, false);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment