protected bool AdjustSurface()
 {
     InvalidSize = (Width <= 0 || Height <= 0);
     if (InvalidSize == true)
     {
         return(false);
     }
     if (_window == null)
     {
         _window = new OverlayWindow(Left, Top, Width, Height)
         {
             IsTopmost = true,
             IsVisible = true
         };
         _graphics = new Graphics
         {
             MeasureFPS = false,
             Width      = _window.Width,
             Height     = _window.Height,
             PerPrimitiveAntiAliasing  = true,
             TextAntiAliasing          = true,
             UseMultiThreadedFactories = false,
             VSync        = false,
             WindowHandle = IntPtr.Zero
         };
         _window.CreateWindow();
         _graphics.WindowHandle = _window.Handle;
         _graphics.Setup();
     }
     else
     {
         if (Left != _window.X || Top != _window.Y)
         {
             _window.Move(Left, Top);
         }
         if (Width != _window.Width || Height != _window.Height)
         {
             _window.Resize(Width, Height);
             _graphics.Resize(Width, Height);
         }
     }
     return(true);
 }