Resize console window on resolution change, not reset it

pull/3235/head
Andrei Kortunov 2 months ago
parent b3188b593c
commit 939760007e

@ -771,11 +771,6 @@ namespace MWGui
return output.append(matches.front());
}
void Console::onResChange(int width, int height)
{
setCoord(10, 10, width - 10, height / 2);
}
void Console::updateSelectedObjectPtr(const MWWorld::Ptr& currentPtr, const MWWorld::Ptr& newPtr)
{
if (mPtr == currentPtr)

@ -47,8 +47,6 @@ namespace MWGui
void onOpen() override;
void onResChange(int width, int height) override;
// Print a message to the console, in specified color.
void print(const std::string& msg, std::string_view color = MWBase::WindowManager::sConsoleColor_Default);

Loading…
Cancel
Save