Skip to content

Commit 48f7111

Browse files
author
Chris Jakeman
committed
Removed option checkFastFullScreenAltTab.
Also finalised previous commit for MSTSBinSound.
1 parent 8bdde67 commit 48f7111

File tree

9 files changed

+47
-79
lines changed

9 files changed

+47
-79
lines changed
-35.4 KB
Loading

Source/Documentation/Manual/options.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,6 @@ Note: This may reduce the frame rate.
242242
Note: Static objects provided with shadows (in the file <route>.ref)
243243
will cast shadows anyway. This option adds shadows for other static objects.
244244

245-
246-
.. _options-fullscreen:
247-
248-
Fast full-screen Alt+Tab
249-
------------------------
250-
251-
When this option is selected, and OR is running full-screen, pressing
252-
Alt+Tab leaves OR full-screen and running, and allows the
253-
:ref:`Dispatcher Window <driving-dispatcher>` to be shown in front of it.
254-
If this option is not selected, OR is minimized.
255-
Each successive press of Alt+Tab will toggle between the map window
256-
and the OR window.
257-
258-
Note: To display the Map Window, the :ref:`Map window option <options-map-window>`
259-
must also be selected and the Map Window started with Ctrl+9.
260-
261245
Glass on in-game windows
262246
------------------------
263247

Source/Menu/Options.Designer.cs

Lines changed: 41 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public OptionsForm(UserSettings settings, UpdateManager updateManager, bool init
163163
// Video tab
164164
checkDynamicShadows.Checked = Settings.DynamicShadows;
165165
checkShadowAllShapes.Checked = Settings.ShadowAllShapes;
166-
checkFastFullScreenAltTab.Checked = Settings.FastFullScreenAltTab;
167166
checkWindowGlass.Checked = Settings.WindowGlass;
168167
checkModelInstancing.Checked = Settings.ModelInstancing;
169168
checkWire.Checked = Settings.Wire;
@@ -454,7 +453,6 @@ void buttonOK_Click(object sender, EventArgs e)
454453
// Video tab
455454
Settings.DynamicShadows = checkDynamicShadows.Checked;
456455
Settings.ShadowAllShapes = checkShadowAllShapes.Checked;
457-
Settings.FastFullScreenAltTab = checkFastFullScreenAltTab.Checked;
458456
Settings.WindowGlass = checkWindowGlass.Checked;
459457
Settings.ModelInstancing = checkModelInstancing.Checked;
460458
Settings.Wire = checkWire.Checked;

Source/Menu/Options.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121121
<value>17, 17</value>
122122
</metadata>
123+
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124+
<value>17, 17</value>
125+
</metadata>
123126
<metadata name="bindingSourceContent.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124127
<value>114, 17</value>
125128
</metadata>

Source/ORTS.Settings/UserSettings.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ public enum DirectXFeature
186186
public bool DisableTCSScripts { get; set; }
187187

188188
// Audio settings:
189-
[Default(true)]
190-
public bool MSTSBINSound { get; set; }
191189
[Default(100)]
192190
public int SoundVolumePercent { get; set; }
193191
[Default(5)]
@@ -201,8 +199,6 @@ public enum DirectXFeature
201199
[Default(false)]
202200
public bool ShadowAllShapes { get; set; }
203201
[Default(false)]
204-
public bool FastFullScreenAltTab { get; set; }
205-
[Default(false)]
206202
public bool WindowGlass { get; set; }
207203
[Default(false)]
208204
public bool ModelInstancing { get; set; }

Source/Orts.Simulation/Common/Events.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public enum Source
268268
// MSTS/MSTSBin behaviour whenever possible. NEVER return values for
269269
// non-MSTS events when passed an MSTS Source.
270270

271-
public static Event From(bool mstsBinEnabled, Source source, int eventID)
271+
public static Event From(Source source, int eventID)
272272
{
273273
switch (source)
274274
{

Source/RunActivity/Viewer3D/Processes/RenderProcess.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ internal RenderProcess(Game game)
100100
GraphicsDeviceManager.PreferredDepthStencilFormat = DepthFormat.Depth24Stencil8;
101101
GraphicsDeviceManager.IsFullScreen = Game.Settings.FullScreen;
102102
GraphicsDeviceManager.PreferMultiSampling = (AntiAliasingMethod)Game.Settings.AntiAliasing != AntiAliasingMethod.None;
103-
GraphicsDeviceManager.HardwareModeSwitch = !Game.Settings.FastFullScreenAltTab;
103+
GraphicsDeviceManager.HardwareModeSwitch = false; // for fast full-screen Alt-Tab switching
104104
GraphicsDeviceManager.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(GDM_PreparingDeviceSettings);
105105
}
106106

Source/RunActivity/Viewer3D/Sound.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ public class ORTSDiscreteTrigger: ORTSTrigger, Orts.Common.EventHandler
16201620

16211621
public ORTSDiscreteTrigger(SoundStream soundStream, Events.Source eventSound, Orts.Formats.Msts.Discrete_Trigger smsData, UserSettings settings)
16221622
{
1623-
TriggerID = Events.From(settings.MSTSBINSound, eventSound, smsData.TriggerID);
1623+
TriggerID = Events.From(eventSound, smsData.TriggerID);
16241624
SoundCommand = ORTSSoundCommand.FromMSTS(smsData.SoundCommand, soundStream);
16251625
SoundStream = soundStream;
16261626
}

0 commit comments

Comments
 (0)