fna-workbench

fna-workbench Commit Details


Date:2016-01-25 12:32:04 (9 years 7 months ago)
Author:Ethan Lee
Branch:master
Commit:6776049b5014df22bdc09e9f58a775468789629a
Parents: 52833ad83ba080943febce3a0796cd2065bd10f3
Message:ToggleFullScreen fix

Changes:

File differences

src/GraphicsDeviceManager.cs
278278
279279
280280
281
282281
283
284
282
285283
286284
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
285
305286
306287
307288
{
// Change settings.
IsFullScreen = !IsFullScreen;
graphicsDevice.PresentationParameters.IsFullScreen = IsFullScreen;
/* FIXME: It almost looks like this method calls ApplyChanges...
* Does it just do that instead of all this?
/* FIXME: Does it really just do this or is it more specific...?
* -flibit
*/
GraphicsDevice.PresentationParameters.BackBufferWidth =
PreferredBackBufferWidth;
GraphicsDevice.PresentationParameters.BackBufferHeight =
PreferredBackBufferHeight;
// Apply settings.
game.Window.BeginScreenDeviceChange(IsFullScreen);
game.Window.EndScreenDeviceChange(
"FNA",
GraphicsDevice.PresentationParameters.BackBufferWidth,
GraphicsDevice.PresentationParameters.BackBufferHeight
);
// Toggling fullscreen may have effects on the backbuffer!
GraphicsDevice.GLDevice.ResetBackbuffer(
GraphicsDevice.PresentationParameters,
GraphicsDevice.RenderTargetCount > 0
);
ApplyChanges();
}
#endregion

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.43085s using 13 queries.