mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
OPNMIDI: Remove std:: from all snprintf calls
This commit is contained in:
parent
9c1cf72175
commit
2d79d187d5
1 changed files with 5 additions and 5 deletions
|
@ -280,7 +280,7 @@ bool OPNMIDIplay::buildTrackData()
|
|||
evtPos.delay = ReadVarLenEx(&trackPtr, end, ok);
|
||||
if(!ok)
|
||||
{
|
||||
int len = std::snprintf(error, 150, "buildTrackData: Can't read variable-length value at begin of track %d.\n", (int)tk);
|
||||
int len = snprintf(error, 150, "buildTrackData: Can't read variable-length value at begin of track %d.\n", (int)tk);
|
||||
if((len > 0) && (len < 150))
|
||||
errorString += std::string(error, (size_t)len);
|
||||
return false;
|
||||
|
@ -308,7 +308,7 @@ bool OPNMIDIplay::buildTrackData()
|
|||
event = parseEvent(&trackPtr, end, status);
|
||||
if(!event.isValid)
|
||||
{
|
||||
int len = std::snprintf(error, 150, "buildTrackData: Fail to parse event in the track %d.\n", (int)tk);
|
||||
int len = snprintf(error, 150, "buildTrackData: Fail to parse event in the track %d.\n", (int)tk);
|
||||
if((len > 0) && (len < 150))
|
||||
errorString += std::string(error, (size_t)len);
|
||||
return false;
|
||||
|
@ -2567,12 +2567,12 @@ retry_arpeggio:
|
|||
// if(ains.tone)
|
||||
// {
|
||||
// /*if(ains.tone < 20)
|
||||
// std::snprintf(ToneIndication, 8, "+%-2d", ains.tone);
|
||||
// snprintf(ToneIndication, 8, "+%-2d", ains.tone);
|
||||
// else*/
|
||||
// if(ains.tone < 128)
|
||||
// std::snprintf(ToneIndication, 8, "=%-2d", ains.tone);
|
||||
// snprintf(ToneIndication, 8, "=%-2d", ains.tone);
|
||||
// else
|
||||
// std::snprintf(ToneIndication, 8, "-%-2d", ains.tone - 128);
|
||||
// snprintf(ToneIndication, 8, "-%-2d", ains.tone - 128);
|
||||
// }
|
||||
// std::printf("%s%s%s%u\t",
|
||||
// ToneIndication,
|
||||
|
|
Loading…
Reference in a new issue