| ␉␉␉gdi.Adapter = GraphicsDevice.Adapter;␊ |
| ␉␉␉gdi.GraphicsProfile = GraphicsDevice.GraphicsProfile;␊ |
| ␉␉␉gdi.PresentationParameters = GraphicsDevice.PresentationParameters.Clone();␊ |
| ␉␉␉OnPreparingDeviceSettings(␊ |
| ␉␉␉␉this,␊ |
| ␉␉␉␉new PreparingDeviceSettingsEventArgs(gdi)␊ |
| ␉␉␉);␊ |
| ␊ |
| ␉␉␉/* Apply the GraphicsDevice changes to the new Parameters.␊ |
| ␉␉␉ * FIXME: Do we care about what OnPreparingDeviceSettings says about␊ |
| ␉␉␉ * any of the data we're overwriting here?␊ |
| ␉␉␉ * Note that PreparingDeviceSettings can override any of these!␊ |
| ␉␉␉ * -flibit␊ |
| ␉␉␉ */␊ |
| ␉␉␉gdi.PresentationParameters.BackBufferFormat =␊ |
|
| ␉␉␉␉);␊ |
| ␉␉␉}␊ |
| ␊ |
| ␉␉␉// Give the user a chance to override the above settings.␊ |
| ␉␉␉OnPreparingDeviceSettings(␊ |
| ␉␉␉␉this,␊ |
| ␉␉␉␉new PreparingDeviceSettingsEventArgs(gdi)␊ |
| ␉␉␉);␊ |
| ␊ |
| ␉␉␉// We're about to reset a device, notify the application.␊ |
| ␉␉␉OnDeviceResetting(this, EventArgs.Empty);␊ |
| ␊ |