From 233e6fd849e741fdec6eb8b776709f188aa6e32e Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Mon, 6 Apr 2009 15:22:23 +0300 Subject: [PATCH] * Leave fullscreen before deinitialisation to reduce risk of leaving a mess --- debian/changelog | 1 + openBVE/OpenBve/Program.cs | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/debian/changelog b/debian/changelog index b20093d..c334c0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,7 @@ openbve (1.0.2.0-0ubuntu1) unreleased; urgency=low * Update 'known-issues.txt' * Print + try...except{} around path used in LoadOptions() (debugging) * Pacify lintian checker + * Leave fullscreen before deinitialisation to reduce risk of leaving a mess -- Paul Sladen Sun, 05 Apr 2009 12:33:10 +0000 diff --git a/openBVE/OpenBve/Program.cs b/openBVE/OpenBve/Program.cs index b8e7d37..8696ec8 100644 --- a/openBVE/OpenBve/Program.cs +++ b/openBVE/OpenBve/Program.cs @@ -56,6 +56,12 @@ namespace OpenBve { } #endif // deinitialize + + // leave full-screen mode, to reduce risk of leaving a mess + // if something during shutdown crashes/hangs + if(Interface.CurrentOptions.FullscreenMode) { + OpenBve.MainLoop.ToggleFullscreen(); + } Asynchronous.Deinitialize(); PluginManager.UnloadPlugin(); TextureManager.UnuseAllTextures(); -- 1.6.0.4