mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- pluginlist: simplify b427c3d6a5
This commit is contained in:
@@ -324,10 +324,9 @@ void CPluginList::paint()
|
|||||||
width = w_max( 500, 0 );
|
width = w_max( 500, 0 );
|
||||||
height = h_max( 526, 50 ); // 2*25 pixel frei
|
height = h_max( 526, 50 ); // 2*25 pixel frei
|
||||||
listmaxshow = (height-theight-0)/fheight;
|
listmaxshow = (height-theight-0)/fheight;
|
||||||
int multiplicator = pluginlist.size();
|
if (pluginlist.size() < listmaxshow)
|
||||||
if (listmaxshow < pluginlist.size())
|
listmaxshow = pluginlist.size();
|
||||||
multiplicator = listmaxshow;
|
height = theight+0+listmaxshow*fheight; // recalc height
|
||||||
height = theight+0+multiplicator*fheight; // recalc height
|
|
||||||
x=getScreenStartX( width );
|
x=getScreenStartX( width );
|
||||||
y=getScreenStartY( height );
|
y=getScreenStartY( height );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user