From 33582fabb5dd1d6fffed3dd940d2eb15785d2c26 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 26 Jan 2013 12:49:50 +0100 Subject: Fixed a possible division by zero in DisplayChannel --- HISTORY | 1 + displaychannel.c | 1 + 2 files changed, 2 insertions(+) diff --git a/HISTORY b/HISTORY index b79de39..d3cb257 100644 --- a/HISTORY +++ b/HISTORY @@ -101,3 +101,4 @@ Version 0.0.6 est. bitrate) in detailed recording view - Added channel logos in main menu timers list - Changed channel info icons in DisplayChannel +- Fixed a possible division by zero in DisplayChannel diff --git a/displaychannel.c b/displaychannel.c index 5245599..ea6a86a 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -464,6 +464,7 @@ tColor cNopacityDisplayChannel::DrawProgressbarBackground(int left, int top, int tColor clr1 = Theme.Color(clrProgressBar); tColor clr2 = Theme.Color(clrProgressBarBlend); tColor clr = 0x00000000; + width = (width==0)?1:width; int step = width / 256; int alpha = 0x0; int alphaStep; -- cgit v1.2.3