early-access version 2333
This commit is contained in:
parent
027931de86
commit
146de706b6
@ -11,9 +11,15 @@ find_package(Git QUIET PATHS "${GIT_EXECUTABLE}")
|
|||||||
|
|
||||||
# generate git/build information
|
# generate git/build information
|
||||||
include(GetGitRevisionDescription)
|
include(GetGitRevisionDescription)
|
||||||
|
if(NOT GIT_REF_SPEC)
|
||||||
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||||
|
endif()
|
||||||
|
if(NOT GIT_DESC)
|
||||||
git_describe(GIT_DESC --always --long --dirty)
|
git_describe(GIT_DESC --always --long --dirty)
|
||||||
|
endif()
|
||||||
|
if (NOT GIT_BRANCH)
|
||||||
git_branch_name(GIT_BRANCH)
|
git_branch_name(GIT_BRANCH)
|
||||||
|
endif()
|
||||||
get_timestamp(BUILD_DATE)
|
get_timestamp(BUILD_DATE)
|
||||||
|
|
||||||
# Generate cpp with Git revision from template
|
# Generate cpp with Git revision from template
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2331.
|
This is the source code for early-access 2333.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -22,6 +22,11 @@ add_custom_command(OUTPUT scm_rev.cpp
|
|||||||
-DTITLE_BAR_FORMAT_RUNNING=${TITLE_BAR_FORMAT_RUNNING}
|
-DTITLE_BAR_FORMAT_RUNNING=${TITLE_BAR_FORMAT_RUNNING}
|
||||||
-DBUILD_TAG=${BUILD_TAG}
|
-DBUILD_TAG=${BUILD_TAG}
|
||||||
-DBUILD_ID=${DISPLAY_VERSION}
|
-DBUILD_ID=${DISPLAY_VERSION}
|
||||||
|
-DGIT_REF_SPEC=${GIT_REF_SPEC}
|
||||||
|
-DGIT_REV=${GIT_REV}
|
||||||
|
-DGIT_DESC=${GIT_DESC}
|
||||||
|
-DGIT_BRANCH=${GIT_BRANCH}
|
||||||
|
-DBUILD_FULLNAME=${BUILD_FULLNAME}
|
||||||
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
|
||||||
-P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
|
-P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
@ -2546,39 +2546,30 @@ void GMainWindow::ToggleFullscreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::ShowFullscreen() {
|
void GMainWindow::ShowFullscreen() {
|
||||||
|
const auto show_fullscreen = [](QWidget* window) {
|
||||||
|
if (Settings::values.fullscreen_mode.GetValue() == Settings::FullscreenMode::Exclusive) {
|
||||||
|
window->showFullScreen();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window->hide();
|
||||||
|
window->setWindowFlags(window->windowFlags() | Qt::FramelessWindowHint);
|
||||||
|
const auto screen_geometry = QApplication::desktop()->screenGeometry(window);
|
||||||
|
window->setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(),
|
||||||
|
screen_geometry.height() + 1);
|
||||||
|
window->raise();
|
||||||
|
window->showNormal();
|
||||||
|
};
|
||||||
|
|
||||||
if (ui->action_Single_Window_Mode->isChecked()) {
|
if (ui->action_Single_Window_Mode->isChecked()) {
|
||||||
UISettings::values.geometry = saveGeometry();
|
UISettings::values.geometry = saveGeometry();
|
||||||
|
|
||||||
ui->menubar->hide();
|
ui->menubar->hide();
|
||||||
statusBar()->hide();
|
statusBar()->hide();
|
||||||
|
|
||||||
if (Settings::values.fullscreen_mode.GetValue() == Settings::FullscreenMode::Exclusive) {
|
show_fullscreen(this);
|
||||||
showFullScreen();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
hide();
|
|
||||||
setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
|
|
||||||
const auto screen_geometry = QApplication::desktop()->screenGeometry(this);
|
|
||||||
setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(),
|
|
||||||
screen_geometry.height() + 1);
|
|
||||||
raise();
|
|
||||||
showNormal();
|
|
||||||
} else {
|
} else {
|
||||||
UISettings::values.renderwindow_geometry = render_window->saveGeometry();
|
UISettings::values.renderwindow_geometry = render_window->saveGeometry();
|
||||||
|
show_fullscreen(render_window);
|
||||||
if (Settings::values.fullscreen_mode.GetValue() == Settings::FullscreenMode::Exclusive) {
|
|
||||||
render_window->showFullScreen();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
render_window->hide();
|
|
||||||
render_window->setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
|
|
||||||
const auto screen_geometry = QApplication::desktop()->screenGeometry(this);
|
|
||||||
render_window->setGeometry(screen_geometry.x(), screen_geometry.y(),
|
|
||||||
screen_geometry.width(), screen_geometry.height() + 1);
|
|
||||||
render_window->raise();
|
|
||||||
render_window->showNormal();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user