CComponentsWindow: using current screen settings for default dimensions

This commit is contained in:
2013-03-09 00:28:49 +01:00
parent b0469b196e
commit 74b2dde248

View File

@@ -31,6 +31,7 @@
#include <global.h>
#include <neutrino.h>
#include "cc.h"
#include <driver/screen_max.h>
using namespace std;
@@ -51,6 +52,12 @@ void CComponentsWindow::initVarWindow()
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);
}