mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-15 21:06:46 +00:00
Merge branch 'no_input' into 'master'
[Postprocessing] Take away mouse input from headers, remove unnecessary dirty See merge request OpenMW/openmw!1965
This commit is contained in:
commit
e78d36ff50
2 changed files with 5 additions and 2 deletions
|
@ -378,7 +378,11 @@ namespace MWGui
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!uniform->mHeader.empty())
|
if (!uniform->mHeader.empty())
|
||||||
mConfigArea->createWidget<Gui::AutoSizedTextBox>("MW_UniformGroup", {0,0,0,34}, MyGUI::Align::Default)->setCaption(uniform->mHeader);
|
{
|
||||||
|
Gui::AutoSizedTextBox* divider = mConfigArea->createWidget<Gui::AutoSizedTextBox>("MW_UniformGroup", {0,0,0,34}, MyGUI::Align::Default);
|
||||||
|
divider->setNeedMouseFocus(false);
|
||||||
|
divider->setCaption(uniform->mHeader);
|
||||||
|
}
|
||||||
|
|
||||||
fx::Widgets::UniformBase* uwidget = mConfigArea->createWidget<fx::Widgets::UniformBase>("MW_UniformEdit", {0,0,0,22}, MyGUI::Align::Default);
|
fx::Widgets::UniformBase* uwidget = mConfigArea->createWidget<fx::Widgets::UniformBase>("MW_UniformEdit", {0,0,0,22}, MyGUI::Align::Default);
|
||||||
uwidget->init(uniform);
|
uwidget->init(uniform);
|
||||||
|
|
|
@ -148,7 +148,6 @@ namespace MWRender
|
||||||
{
|
{
|
||||||
const auto [w, h] = rt.mSize.get(mWidth, mHeight);
|
const auto [w, h] = rt.mSize.get(mWidth, mHeight);
|
||||||
rt.mTarget->setTextureSize(w, h);
|
rt.mTarget->setTextureSize(w, h);
|
||||||
rt.mTarget->dirtyTextureObject();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue