diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-13 12:30:32 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-13 12:30:32 +0200 |
| commit | 78e040f5f6f3af0f4e66b84523f77fdfb819b8af (patch) | |
| tree | f6851351fae7d6a9d618cc28364f5661e287f471 /src/GraphicObjects/GraphicObject.cs | |
| parent | 3260d86cda78bd53070f7318863df642f3492588 (diff) | |
LastPainted slot clipping rect!
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 2c10a658..0944703f 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -364,10 +364,12 @@ namespace go }
public Rectangle LastSlots;
+ public Rectangle LastPaintedSlot;
public virtual void registerClipRect()
{
TopContainer.redrawClip.AddRectangle (ScreenCoordinates(Slot));
+ TopContainer.redrawClip.AddRectangle (ScreenCoordinates(LastPaintedSlot));
}
protected virtual Size measureRawSize ()
{
@@ -567,6 +569,8 @@ namespace go protected virtual void UpdateGraphic ()
{
+ LastPaintedSlot = Slot;
+
int stride = 4 * Slot.Width;
int bmpSize = Math.Abs (stride) * Slot.Height;
|