@@ -169,23 +169,23 @@ public void Flip()
169
169
{
170
170
return ;
171
171
}
172
- BaseMenu . Renderer . SetWindowSize ( ( int ) ( res . Width * DisplayDevice . Default . ScaleFactor . X ) , ( int ) ( res . Height * DisplayDevice . Default . ScaleFactor . Y ) ) ;
172
+ BaseMenu . Renderer . SetWindowSize ( ( int ) ( res . Width * BaseRenderer . ScaleFactor . X ) , ( int ) ( res . Height * BaseRenderer . ScaleFactor . Y ) ) ;
173
173
if ( BaseMenu . CurrentOptions . FullscreenMode )
174
174
{
175
175
IList < DisplayResolution > resolutions = DisplayDevice . Default . AvailableResolutions ;
176
176
foreach ( DisplayResolution currentResolution in resolutions )
177
177
{
178
178
//Test resolution
179
- if ( currentResolution . Width == BaseMenu . Renderer . Screen . Width / DisplayDevice . Default . ScaleFactor . X &&
180
- currentResolution . Height == BaseMenu . Renderer . Screen . Height / DisplayDevice . Default . ScaleFactor . Y )
179
+ if ( currentResolution . Width == BaseMenu . Renderer . Screen . Width / BaseRenderer . ScaleFactor . X &&
180
+ currentResolution . Height == BaseMenu . Renderer . Screen . Height / BaseRenderer . ScaleFactor . Y )
181
181
{
182
182
try
183
183
{
184
184
//HACK: some resolutions will result in openBVE not appearing on screen in full screen, so restore resolution then change resolution
185
185
DisplayDevice . Default . RestoreResolution ( ) ;
186
186
DisplayDevice . Default . ChangeResolution ( currentResolution ) ;
187
187
BaseMenu . Renderer . SetWindowState ( WindowState . Fullscreen ) ;
188
- BaseMenu . Renderer . SetWindowSize ( ( int ) ( currentResolution . Width * DisplayDevice . Default . ScaleFactor . X ) , ( int ) ( currentResolution . Height * DisplayDevice . Default . ScaleFactor . Y ) ) ;
188
+ BaseMenu . Renderer . SetWindowSize ( ( int ) ( currentResolution . Width * BaseRenderer . ScaleFactor . X ) , ( int ) ( currentResolution . Height * BaseRenderer . ScaleFactor . Y ) ) ;
189
189
BaseMenu . CurrentOptions . FullscreenWidth = currentResolution . Width ;
190
190
BaseMenu . CurrentOptions . FullscreenHeight = currentResolution . Height ;
191
191
return ;
@@ -217,16 +217,16 @@ public void Flip()
217
217
foreach ( DisplayResolution currentResolution in resolutions )
218
218
{
219
219
//Test resolution
220
- if ( currentResolution . Width == BaseMenu . Renderer . Screen . Width / DisplayDevice . Default . ScaleFactor . X &&
221
- currentResolution . Height == BaseMenu . Renderer . Screen . Height / DisplayDevice . Default . ScaleFactor . Y )
220
+ if ( currentResolution . Width == BaseMenu . Renderer . Screen . Width / BaseRenderer . ScaleFactor . X &&
221
+ currentResolution . Height == BaseMenu . Renderer . Screen . Height / BaseRenderer . ScaleFactor . Y )
222
222
{
223
223
try
224
224
{
225
225
//HACK: some resolutions will result in openBVE not appearing on screen in full screen, so restore resolution then change resolution
226
226
DisplayDevice . Default . RestoreResolution ( ) ;
227
227
DisplayDevice . Default . ChangeResolution ( currentResolution ) ;
228
228
BaseMenu . Renderer . SetWindowState ( WindowState . Fullscreen ) ;
229
- BaseMenu . Renderer . SetWindowSize ( ( int ) ( currentResolution . Width * DisplayDevice . Default . ScaleFactor . X ) , ( int ) ( currentResolution . Height * DisplayDevice . Default . ScaleFactor . Y ) ) ;
229
+ BaseMenu . Renderer . SetWindowSize ( ( int ) ( currentResolution . Width * BaseRenderer . ScaleFactor . X ) , ( int ) ( currentResolution . Height * BaseRenderer . ScaleFactor . Y ) ) ;
230
230
return ;
231
231
}
232
232
catch
0 commit comments