「Xamarin.Androidで画面の向きを固定する」の版間の差分

編集の要約なし
 
12行目: 12行目:
         // 以下のRequestedOrientationプロパティに設定する方法だとダメ。
         // 以下のRequestedOrientationプロパティに設定する方法だとダメ。
         // 起動時に一瞬だけ横になりMonoGameの初期化ルーチンで画面サイズの情報がバグる。
         // 起動時に一瞬だけ横になりMonoGameの初期化ルーチンで画面サイズの情報がバグる。
         this.RequestedOrientation = ScreenOrientation.Portrait;
         //this.RequestedOrientation = ScreenOrientation.Portrait;


         var g = new GameMain();
         var g = new GameMain();