pluginlist: simplify 06f7be9c17

Origin commit data
------------------
Commit: 565b62477b
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-02-12 (Wed, 12 Feb 2014)

Origin message was:
------------------
- pluginlist: simplify 06f7be9c17
This commit is contained in:
vanhofen
2014-02-12 09:24:37 +01:00
parent 7ab316f72e
commit 8d760e9dfb

View File

@@ -324,10 +324,9 @@ void CPluginList::paint()
width = w_max( 500, 0 );
height = h_max( 526, 50 ); // 2*25 pixel frei
listmaxshow = (height-theight-0)/fheight;
int multiplicator = pluginlist.size();
if (listmaxshow < pluginlist.size())
multiplicator = listmaxshow;
height = theight+0+multiplicator*fheight; // recalc height
if (pluginlist.size() < listmaxshow)
listmaxshow = pluginlist.size();
height = theight+0+listmaxshow*fheight; // recalc height
x=getScreenStartX( width );
y=getScreenStartY( height );