From 9e5a4dc63e1e9fcfe5b61df9de2fe65d6238929f Mon Sep 17 00:00:00 2001 From: casey Date: Fri, 27 May 2016 23:18:40 -0700 Subject: [PATCH] One more small set of fixes to properly support resizing on Windows. --- src/musikbox/Main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/musikbox/Main.cpp b/src/musikbox/Main.cpp index 0ba343fd6..4deade124 100644 --- a/src/musikbox/Main.cpp +++ b/src/musikbox/Main.cpp @@ -164,10 +164,7 @@ int main(int argc, char* argv[]) PluginFactory::Instance(); /* initialize */ #ifdef WIN32 - ttytype[0] = 30; /* min height */ - ttytype[1] = 30; /* max height */ - ttytype[2] = 120; /* min width */ - ttytype[3] = 120; /* max width */ + PDC_set_resize_limits(26, 38, 100, 150); #endif initscr(); @@ -263,6 +260,7 @@ int main(int argc, char* argv[]) quit = true; } else if (kn == "KEY_RESIZE") { + resize_term(0, 0); libraryLayout->Layout(); consoleLayout->Layout(); state.layout->BringToTop();