예제 #1
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     Track.Camera.OnResize();
     try
     {
         Canvas.SetCanvasSize(RenderSize.Width, RenderSize.Height);
     }
     catch (Exception ex)
     {
         // SDL2 backend eats exceptions.
         // we have to manually crash.
         Program.Crash(ex, true);
         Close();
     }
 }