「MonoGameで解像度を設定する」の版間の差分
編集の要約なし |
|||
| 16行目: | 16行目: | ||
protected override void Initialize() | protected override void Initialize() | ||
{ | { | ||
// | // 要望する解像度を設定する | ||
graphics.PreferredBackBufferWidth = 360; | graphics.PreferredBackBufferWidth = 360; | ||
graphics.PreferredBackBufferHeight = 240; | graphics.PreferredBackBufferHeight = 240; | ||
// ApplyChangesはInitializeメソッド呼び出し以降で利用可能になる。 | |||
// コンストラクタで呼んでも無反応。 | |||
graphics.ApplyChanges(); | graphics.ApplyChanges(); | ||