private void Resize(object sender, SdlDotNet.Graphics.VideoResizeEventArgs e) { this.width = e.Width; this.height = e.Height; screen = SdlDotNet.Graphics.Video.SetVideoMode(width, height, currentBpp, true); screen.SourceColorKey = Color.Magenta; weatherOverlay.setSize(new Size(width, height)); qView.Size = new Size(e.Width, e.Height); }
/// <summary> /// /// </summary> /// <param name="pe"></param> protected override void OnPaint(PaintEventArgs pe) { //drawer.size = this.ClientSize; //drawer.origin = this.scrollPos; weatherOverlay.setSize(this.ClientSize); //if( ddraw.primarySurface.handle.isLost()!=0 ) // surface is lost // PictureManager.onSurfaceLost(this,null); // drawer.draw( ddraw.primarySurface, PointToScreen(new Point(0,0)) ); //weatherOverlay.draw( drawer, ddraw.primarySurface, PointToScreen(new Point(0,0)) ); base.OnPaint(pe); }