mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 09:01:15 +00:00
One more small set of fixes to properly support resizing on Windows.
This commit is contained in:
parent
d993743cb9
commit
9e5a4dc63e
@ -164,10 +164,7 @@ int main(int argc, char* argv[])
|
|||||||
PluginFactory::Instance(); /* initialize */
|
PluginFactory::Instance(); /* initialize */
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
ttytype[0] = 30; /* min height */
|
PDC_set_resize_limits(26, 38, 100, 150);
|
||||||
ttytype[1] = 30; /* max height */
|
|
||||||
ttytype[2] = 120; /* min width */
|
|
||||||
ttytype[3] = 120; /* max width */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
initscr();
|
initscr();
|
||||||
@ -263,6 +260,7 @@ int main(int argc, char* argv[])
|
|||||||
quit = true;
|
quit = true;
|
||||||
}
|
}
|
||||||
else if (kn == "KEY_RESIZE") {
|
else if (kn == "KEY_RESIZE") {
|
||||||
|
resize_term(0, 0);
|
||||||
libraryLayout->Layout();
|
libraryLayout->Layout();
|
||||||
consoleLayout->Layout();
|
consoleLayout->Layout();
|
||||||
state.layout->BringToTop();
|
state.layout->BringToTop();
|
||||||
|
Loading…
Reference in New Issue
Block a user