CComponentsWindow: using current screen settings for default dimensions

Origin commit data
------------------
Branch: ni/coolstream
Commit: 74b2dde248
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2013-03-09 00:28:49 +01:00
parent 08d643a8b4
commit 7bec5a6e4f

View File

@@ -31,6 +31,7 @@
#include <global.h>
#include <neutrino.h>
#include "cc.h"
#include <driver/screen_max.h>
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);
}