diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index 82e79ea15..69a5dbffb 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -31,6 +31,7 @@ #include #include #include "cc.h" +#include using namespace std; @@ -50,6 +51,12 @@ void CComponentsWindow::initVarWindow() ccw_head = NULL; ccw_caption = ""; ccw_icon_name = NULL; + + //using current screen settings for default dimensions + width = frameBuffer->getScreenWidth(); + height = frameBuffer->getScreenHeight(); + x=getScreenStartX(width); + y=getScreenStartY(height); setShadowOnOff(true); }