From 74b2dde2486bb5a8182a3d1b14ded89a1e857ab4 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 9 Mar 2013 00:28:49 +0100 Subject: [PATCH] CComponentsWindow: using current screen settings for default dimensions --- src/gui/components/cc_frm_window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); }