return clock_gettime(CLOCK_REALTIME, tp);
}
-int min(UINT a, int b)
-{
- if (a > b) return b;
- else return a;
-}
-
-int max(int a, int b)
-{
- if (a > b) return a;
- else return b;
-}
-
const std::string& getCommandLineServer()
{
return argvServer;
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with VOMP; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ along with VOMP. If not, see <https://www.gnu.org/licenses/>.
*/
-#include "wpictureview.h"
+#include <math.h>
+#include <algorithm>
#include "colour.h"
#include "input.h"
#include "osd.h"
#include "movieinfo.h"
#include "seriesinfo.h"
-#include <math.h>
+
+#include "wpictureview.h"
WPictureView::WPictureView():
foreColour(DrawStyle::LIGHTTEXT)
{
}
-
-
void WPictureView::setForegroundColour(const DrawStyle& fcolour)
{
foreColour = fcolour;
{
if ((((*itty).w + cur_width+ 10.f) > area.w || const_height) && cur_pict.size() > 0) break;
cur_width += 10 + (*itty).w;
- if (!const_height) max_height = max(max_height,(*itty).h);
+ if (!const_height) max_height = std::max(max_height,(*itty).h);
cur_pict.push_back(&(*itty));
itty++;
}