diff options
author | louis <louis.braun@gmx.de> | 2013-01-26 12:49:50 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-01-26 12:49:50 +0100 |
commit | 33582fabb5dd1d6fffed3dd940d2eb15785d2c26 (patch) | |
tree | 4abd4df7a6a48f6f845df0ae353dfd44dd7e3f48 | |
parent | 478029d0e15955cdd13b78e039e325841e7dd6ac (diff) | |
download | skin-nopacity-33582fabb5dd1d6fffed3dd940d2eb15785d2c26.tar.gz skin-nopacity-33582fabb5dd1d6fffed3dd940d2eb15785d2c26.tar.bz2 |
Fixed a possible division by zero in DisplayChannel
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | displaychannel.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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; |