mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
fix "operation on 'sigBox_pos' may be undefined" compiler warning
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1442 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 34af85a647
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-05-07 (Sat, 07 May 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -221,7 +221,7 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
if(snrscale)
|
if(snrscale)
|
||||||
snrscale->reset();
|
snrscale->reset();
|
||||||
lastsnr = lastsig = -1;
|
lastsnr = lastsig = -1;
|
||||||
paint_mode = ++paint_mode % 2;
|
paint_mode = !paint_mode;
|
||||||
paint (paint_mode);
|
paint (paint_mode);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -325,7 +325,8 @@ void CStreamInfo2::paint_signal_fe(struct bitrate br, struct feSignal s)
|
|||||||
int yt = sig_text_y + (sheight *2)+4;
|
int yt = sig_text_y + (sheight *2)+4;
|
||||||
int yd;
|
int yd;
|
||||||
static int old_x=0,old_y=0;
|
static int old_x=0,old_y=0;
|
||||||
sigBox_pos = (++sigBox_pos) % sigBox_w;
|
sigBox_pos++;
|
||||||
|
sigBox_pos %= sigBox_w;
|
||||||
|
|
||||||
frameBuffer->paintVLine(sigBox_x+sigBox_pos, sigBox_y, sigBox_y+sigBox_h, COL_WHITE);
|
frameBuffer->paintVLine(sigBox_x+sigBox_pos, sigBox_y, sigBox_y+sigBox_h, COL_WHITE);
|
||||||
frameBuffer->paintVLine(sigBox_x+x_now, sigBox_y, sigBox_y+sigBox_h+1, COL_BLACK);
|
frameBuffer->paintVLine(sigBox_x+x_now, sigBox_y, sigBox_y+sigBox_h+1, COL_BLACK);
|
||||||
|
Reference in New Issue
Block a user