mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
stringinput test fix
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1379 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 6033d3e635
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-04-06 (Wed, 06 Apr 2011)
This commit is contained in:
@@ -379,6 +379,7 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
for(int count=strlen(value)-1;count<size-1;count++)
|
for(int count=strlen(value)-1;count<size-1;count++)
|
||||||
strcat(value, " ");
|
strcat(value, " ");
|
||||||
strncpy(oldval, value, size);
|
strncpy(oldval, value, size);
|
||||||
|
strncpy(dispval, value, size);
|
||||||
|
|
||||||
paint();
|
paint();
|
||||||
|
|
||||||
@@ -388,11 +389,11 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
bool loop=true;
|
bool loop=true;
|
||||||
while (loop)
|
while (loop)
|
||||||
{
|
{
|
||||||
if ( strncmp(value, dispval, size) != 0)
|
// if ( strncmp(value, dispval, size) != 0)
|
||||||
{
|
// {
|
||||||
CVFD::getInstance()->showMenuText(1, value, selected+1);
|
// CVFD::getInstance()->showMenuText(1, value, selected+1);
|
||||||
strncpy(dispval, value, size);
|
// strncpy(dispval, value, size);
|
||||||
}
|
// }
|
||||||
|
|
||||||
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true );
|
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user