mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Qt: keep size of shader window when reloading if user has changed it
This commit is contained in:
parent
281966a14c
commit
cc16c45069
@ -49,6 +49,8 @@ ShaderParamsDialog::ShaderParamsDialog(QWidget *parent) :
|
||||
setWindowTitle(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS));
|
||||
setObjectName("shaderParamsDialog");
|
||||
|
||||
resize(720, 480);
|
||||
|
||||
QTimer::singleShot(0, this, SLOT(clearLayout()));
|
||||
}
|
||||
|
||||
@ -968,9 +970,9 @@ void ShaderParamsDialog::buildLayout()
|
||||
m_layout->addItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
||||
|
||||
/* Why is this required?? The layout is corrupt without both resizes. */
|
||||
resize(720 + 1, 480);
|
||||
resize(width() + 1, height());
|
||||
show();
|
||||
resize(720, 480);
|
||||
resize(width() - 1, height());
|
||||
}
|
||||
|
||||
void ShaderParamsDialog::onParameterLabelContextMenuRequested(const QPoint&)
|
||||
|
Loading…
x
Reference in New Issue
Block a user