wmmon: Only compute vertical position of hint lines once.
commitbdfca9d3d02ea5db00c19d1f8bf9a13d984e8159
authorDoug Torrance <dtorrance@piedmont.edu>
Tue, 10 Apr 2018 20:23:38 +0000 (10 16:23 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 10 Apr 2018 23:06:58 +0000 (11 00:06 +0100)
treea783ebaafbe617dae664087ef07c9f75ce6b1736
parent7354c4df533d6cb7bcefccbcfd24e88fc7e5cf30
wmmon: Only compute vertical position of hint lines once.

The system load monitor displays green hint lines at every 100 units once
load average rises above 100.

Previously, the vertical position of these lines was computed before
each and every pixel was drawn.  But since the horizontal position
isn't needed for this computation, we move it up a level to the
outer for loop.
wmmon/wmmon.c