コード例 #1
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     try
     {
         Canvas.SetSize(RenderSize.Width, RenderSize.Height);
         Canvas.FindChildByName("buttons").Position(Pos.CenterH);
     }
     catch (Exception ex)
     {
         // SDL2 backend eats exceptions.
         // we have to manually crash.
         Program.Crash(ex, true);
         Close();
     }
 }
コード例 #2
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     Canvas.SetSize(RenderSize.Width, RenderSize.Height);
     Canvas.FindChildByName("buttons").Position(Pos.CenterH);
 }