int tabLength = 8;
bool _ShowLineBreak;
Color4 _Comment, _Literal, _Keyword1, _Keyword2;
- protected bool hasCache;
+ protected bool hasCache = false;
protected Size renderSize
{
public override void DrawCachedBitmap(Rectangle rect)
{
- if (this.render == null || this.render.IsDisposed)
+ if (this.render == null || this.render.IsDisposed || this.cachedBitMap == null || this.cachedBitMap.IsDisposed)
return;
render.DrawBitmap(this.cachedBitMap, rect, 1.0f, D2D.BitmapInterpolationMode.Linear, rect);
}