int oldVal = _fps;\r
_fps = value;\r
\r
-// if (_fps > fpsMax) {\r
-// fpsMax = _fps;\r
-// ValueChanged.Raise(this, new ValueChangeEventArgs ("fpsMax", fpsMax, _fps));\r
-// } else if (_fps < fpsMin) {\r
-// ValueChanged.Raise(this, new ValueChangeEventArgs ("fpsMin", fpsMin, _fps));\r
-// fpsMin = _fps;\r
-// }\r
-//\r
+ if (_fps > fpsMax) {\r
+ fpsMax = _fps;\r
+ ValueChanged.Raise(this, new ValueChangeEventArgs ("fpsMax", fpsMax, _fps));\r
+ } else if (_fps < fpsMin) {\r
+ ValueChanged.Raise(this, new ValueChangeEventArgs ("fpsMin", fpsMin, _fps));\r
+ fpsMin = _fps;\r
+ }\r
+\r
ValueChanged.Raise(this, new ValueChangeEventArgs ("fps", oldVal, _fps));\r
}\r
}\r
}\r
\r
public Rectangle LastSlots;\r
+ public Rectangle LastPaintedSlot;\r
\r
public virtual void registerClipRect()\r
{\r
TopContainer.redrawClip.AddRectangle (ScreenCoordinates(Slot));\r
+ TopContainer.redrawClip.AddRectangle (ScreenCoordinates(LastPaintedSlot));\r
}\r
protected virtual Size measureRawSize ()\r
{\r
\r
protected virtual void UpdateGraphic ()\r
{\r
+ LastPaintedSlot = Slot;\r
+\r
int stride = 4 * Slot.Width;\r
\r
int bmpSize = Math.Abs (stride) * Slot.Height;\r