mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
CComponentsWindow: simplify statements
Origin commit data
------------------
Commit: ca5702acf4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-21 (Sun, 21 Aug 2016)
This commit is contained in:
@@ -168,14 +168,10 @@ void CComponentsWindow::initWindowSize()
|
|||||||
if (cc_parent)
|
if (cc_parent)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (width == 0)
|
if (width == 0 || (unsigned)width > frameBuffer->getScreenWidth())
|
||||||
width = frameBuffer->getScreenWidth();
|
|
||||||
else if ((unsigned)width > frameBuffer->getScreenWidth())
|
|
||||||
width = frameBuffer->getScreenWidth();
|
width = frameBuffer->getScreenWidth();
|
||||||
|
|
||||||
if (height == 0)
|
if (height == 0 || (unsigned)height > frameBuffer->getScreenHeight())
|
||||||
height = frameBuffer->getScreenHeight();
|
|
||||||
else if((unsigned)height > frameBuffer->getScreenHeight())
|
|
||||||
height = frameBuffer->getScreenHeight();
|
height = frameBuffer->getScreenHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user