public void Update() { var frame = application.FrameSize; if (frame.Width != 0 && frame.Height != 0) { BackBufferSize = frame; } com.Update(frame.Width, frame.Height); }