diff --git a/src/kc/kcApp.cpp b/src/kc/kcApp.cpp index f26e2a9..536547f 100644 --- a/src/kc/kcApp.cpp +++ b/src/kc/kcApp.cpp @@ -34,6 +34,7 @@ #include "cmPrefs.h" #include "cmAudioFile.h" #include "cmThread.h" +#include "cmSymTbl.h" #include "cmProcTest.h" #include "cmDspValue.h" @@ -142,6 +143,9 @@ void kcApp::resize(int x, int y, int w, int h) Fl_Double_Window::resize(x, y, w, h); cmPrefsPathSetInt(_prH,"appWndW",w); cmPrefsPathSetInt(_prH,"appWndH",h); + cmPrefsPathSetInt(_prH,"appWndX",x); + cmPrefsPathSetInt(_prH,"appWndY",y); + } void kcApp::tlCtlNewTimeLineFile( tlCtl* tlCtl, const cmChar_t* fn ) diff --git a/src/kc/kcMain.cpp b/src/kc/kcMain.cpp index dd27703..59e885f 100644 --- a/src/kc/kcMain.cpp +++ b/src/kc/kcMain.cpp @@ -23,6 +23,7 @@ #include "cmText.h" #include "cmFileSys.h" #include "cmPrefs.h" +#include "cmSymTbl.h" #include "cmDspValue.h" #include "cmMsgProtocol.h" #include "cmAudDspIF.h" @@ -40,7 +41,10 @@ enum { kAppWndW = 1600, - kAppWndH = 750 + kAppWndH = 750, + kAppWndX = 10, + kAppWndY = 10 + }; kcApp* kcAppPtr = NULL; @@ -74,6 +78,8 @@ cmPrRC_t kcInitPrefs( cmCtx_t* ctx, cmPrH_t* prH ) unsigned flags = 0; cmPrefsCreateInt(*prH, 1, "appWndW", flags, kAppWndW ); cmPrefsCreateInt(*prH, 2, "appWndH", flags, kAppWndH ); + cmPrefsCreateInt(*prH, 3, "appWndX", flags, kAppWndX ); + cmPrefsCreateInt(*prH, 4, "appWndY", flags, kAppWndY ); return cmPrefsRC(*prH); } @@ -134,9 +140,13 @@ int main( int argc, char* argv[] ) { int appWndW = cmPrefsIntDef(prH,"appWndW", kAppWndW); int appWndH = cmPrefsIntDef(prH,"appWndH", kAppWndH); + int appWndX = cmPrefsIntDef(prH,"appWndX", kAppWndX); + int appWndY = cmPrefsIntDef(prH,"appWndY", kAppWndY); kcAppPtr = new kcApp(&ctx, prH, printqH, appWndW, appWndH, appTitle, aiH, argc, argv); + kcAppPtr->resize(appWndX,appWndY,appWndW,appWndH); + cmAudDspLocalSendSetup(adlH); Fl::run();