mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-20 02:53:57 +00:00
fix: Non-fullscreen & Resize Memory
This commit is contained in:
@@ -90,20 +90,14 @@ rainbow_timer{new QTimer(this)} {
|
|||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
if (!UISettings::values.configure_dialog_geometry.isEmpty()) {
|
||||||
|
restoreGeometry(UISettings::values.configure_dialog_geometry);
|
||||||
|
}
|
||||||
|
|
||||||
UpdateTheme();
|
UpdateTheme();
|
||||||
|
|
||||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
|
|
||||||
QScreen* screen = QApplication::primaryScreen();
|
|
||||||
if (screen) {
|
|
||||||
QRect screenGeometry = screen->availableGeometry();
|
|
||||||
qreal devicePixelRatio = screen->devicePixelRatio();
|
|
||||||
int logicalWidth = static_cast<int>(screenGeometry.width() / devicePixelRatio);
|
|
||||||
int logicalHeight = static_cast<int>(screenGeometry.height() / devicePixelRatio);
|
|
||||||
setGeometry(0, 0, logicalWidth, logicalHeight);
|
|
||||||
showMaximized();
|
|
||||||
}
|
|
||||||
|
|
||||||
tab_button_group = std::make_unique<QButtonGroup>(this);
|
tab_button_group = std::make_unique<QButtonGroup>(this);
|
||||||
tab_button_group->setExclusive(true);
|
tab_button_group->setExclusive(true);
|
||||||
|
|
||||||
@@ -173,7 +167,9 @@ rainbow_timer{new QTimer(this)} {
|
|||||||
ui->buttonBox->setFocus();
|
ui->buttonBox->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigureDialog::~ConfigureDialog() = default;
|
ConfigureDialog::~ConfigureDialog() {
|
||||||
|
UISettings::values.configure_dialog_geometry = saveGeometry();
|
||||||
|
}
|
||||||
|
|
||||||
void ConfigureDialog::UpdateTheme() {
|
void ConfigureDialog::UpdateTheme() {
|
||||||
QString accent_color_str;
|
QString accent_color_str;
|
||||||
|
|||||||
Reference in New Issue
Block a user