Commit 74f82d07 authored by Jan Möbius's avatar Jan Möbius

Read screen size

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4907 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d75a7f0
......@@ -206,7 +206,23 @@ Core::init() {
connect(coreWidget_, SIGNAL(call(QString,bool&)), this, SLOT(slotCall(QString,bool&)));
coreWidget_->resize(1000,1000);
QRect rect = QApplication::desktop()->screenGeometry();
std::cerr << "Width : " << rect.width() << std::endl;;
std::cerr << "Height: " << rect.height() << std::endl;
uint width = rect.width();
if ( width > 1000 ) {
width = 1000;
std::cerr << "Full width" << std::endl;
}
uint height = rect.height();
if ( height > 1000 ) {
height = 1000;
std::cerr << "Full height" << std::endl;
}
coreWidget_->resize(width,height);
coreWidget_->setWindowTitle( OpenFlipper::Options::windowTitle() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment