private void SetSize(int w, int h) { if (_started && !_firstFrame) return; _width = w; _height = h; if (_width < 1) _width = 320; if (_height < 1) _height = 240; _sizeSet = true; }