Using this function I run into a problem that it always return dirty if I’m using windowed fullscreen(Which is preferable mode for me). Seems like it does not take into account this mode and compare new fullscreen mode only against fullscreen/windowed thus always returning dirty.
**bool** UGameUserSettings::IsFullscreenModeDirty() const
{
**bool** bIsDirty = false;
**if** ( GEngine && GEngine->GameViewport && GEngine->GameViewport->ViewportFrame )
{
EWindowMode::Type WindowMode = GEngine->GameViewport->IsFullScreenViewport() ? EWindowMode::Fullscreen : EWindowMode::Windowed;
EWindowMode::Type CurrentFullscreenMode = GetWindowModeType(WindowMode);
EWindowMode::Type NewFullscreenMode = GetFullscreenMode();
bIsDirty = (CurrentFullscreenMode != NewFullscreenMode) ? true : false;
}
**return** bIsDirty;
}
Is it intended?