rename to windowed fullscreen

pull/3227/head
cody glassman 2 years ago
parent 05901a2480
commit ad139f2f9a

@ -157,7 +157,7 @@
Feature #6600: Support NiSortAdjustNode
Feature #6684: Support NiFltAnimationNode
Feature #6699: Ignored flag
Feature #6700: Support borderless fullscreen
Feature #6700: Support windowed fullscreen
Feature #6706: Save the size of the Options window
Feature #6721: [OpenMW-CS] Add option to open records in new window
Task #6201: Remove the "Note: No relevant classes found. No output generated" warnings

@ -359,7 +359,7 @@ void Launcher::GraphicsPage::screenChanged(int screen)
void Launcher::GraphicsPage::slotFullScreenChanged(int mode)
{
if (mode == static_cast<int>(Settings::WindowMode::Fullscreen) || mode == static_cast<int>(Settings::WindowMode::BorderlessFullscreen)) {
if (mode == static_cast<int>(Settings::WindowMode::Fullscreen) || mode == static_cast<int>(Settings::WindowMode::WindowedFullscreen)) {
standardRadioButton->toggle();
customRadioButton->setEnabled(false);
customWidthSpinBox->setEnabled(false);

@ -562,7 +562,7 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
int pos_x = SDL_WINDOWPOS_CENTERED_DISPLAY(screen),
pos_y = SDL_WINDOWPOS_CENTERED_DISPLAY(screen);
if(windowMode == Settings::WindowMode::Fullscreen || windowMode == Settings::WindowMode::BorderlessFullscreen)
if(windowMode == Settings::WindowMode::Fullscreen || windowMode == Settings::WindowMode::WindowedFullscreen)
{
pos_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(screen);
pos_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(screen);
@ -571,7 +571,7 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
Uint32 flags = SDL_WINDOW_OPENGL|SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE;
if(windowMode == Settings::WindowMode::Fullscreen)
flags |= SDL_WINDOW_FULLSCREEN;
else if (windowMode == Settings::WindowMode::BorderlessFullscreen)
else if (windowMode == Settings::WindowMode::WindowedFullscreen)
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
// Allows for Windows snapping features to properly work in borderless window

@ -328,7 +328,7 @@ namespace MWGui
updateMaxLightsComboBox(mMaxLights);
Settings::WindowMode windowMode = static_cast<Settings::WindowMode>(Settings::Manager::getInt("window mode", "Video"));
mWindowBorderButton->setEnabled(windowMode != Settings::WindowMode::Fullscreen && windowMode != Settings::WindowMode::BorderlessFullscreen);
mWindowBorderButton->setEnabled(windowMode != Settings::WindowMode::Fullscreen && windowMode != Settings::WindowMode::WindowedFullscreen);
mKeyboardSwitch->setStateSelected(true);
mControllerSwitch->setStateSelected(false);

@ -76,7 +76,7 @@ namespace SDLUtil
if (SDL_GetWindowFlags(mWindow) & SDL_WINDOW_MAXIMIZED)
SDL_RestoreWindow(mWindow);
if (windowMode == Settings::WindowMode::Fullscreen || windowMode == Settings::WindowMode::BorderlessFullscreen)
if (windowMode == Settings::WindowMode::Fullscreen || windowMode == Settings::WindowMode::WindowedFullscreen)
{
SDL_DisplayMode mode;
SDL_GetWindowDisplayMode(mWindow, &mode);

@ -19,7 +19,7 @@ namespace Settings
enum class WindowMode
{
Fullscreen = 0,
BorderlessFullscreen,
WindowedFullscreen,
Windowed
};

@ -40,12 +40,13 @@ window mode
This setting determines the window mode.
0: Fullscreen
0: Exclusive fullscreen
1: Borderless Fullscreen
1: Windowed fullscreen, borderless window that matches screen resolution
2: Windowed
This setting can be toggled in game using the dropdown list in the Video tab of the Video panel in the Options menu.
It can also be toggled with the window mode dropdown in the Graphics tab of the OpenMW Launcher.

@ -276,7 +276,7 @@
<Widget type="HBox" skin="" position="182 28 300 24">
<Widget type="ComboBox" skin="MW_ComboBox" position="0 0 200 24" align="Left Top" name="WindowModeList">
<Property key="AddItem" value="Fullscreen"/>
<Property key="AddItem" value="Borderless Fullscreen"/>
<Property key="AddItem" value="Windowed Fullscreen"/>
<Property key="AddItem" value="Windowed"/>
</Widget>
</Widget>

@ -612,7 +612,7 @@ resolution x = 800
resolution y = 600
# Specify the window mode.
# 0 = Fullscreen, 1 = Borderless Fullscreen, 2 = Windowed
# 0 = Fullscreen, 1 = Windowed Fullscreen, 2 = Windowed
window mode = 0
# Determines which screen OpenMW is on. (>=0).

@ -131,7 +131,7 @@
</item>
<item>
<property name="text">
<string>Borderless Fullscreen</string>
<string>Windowed Fullscreen</string>
</property>
</item>
<item>

Loading…
Cancel
Save