Fixes for mac compatibility. Big thanks to Katharine Berry for catching the issue.

Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
Beeks
2010-09-22 22:19:38 -04:00
parent ec55705bdd
commit ac96519df3
4 changed files with 12 additions and 17 deletions

View File

@@ -751,13 +751,10 @@ drawPalette ()
std::string RGBToHex(int rNum, int gNum, int bNum)
{
std::string result;
char chr[255];
sprintf_s(chr, "%.2X", rNum);
result.append(chr);
sprintf_s(chr, "%.2X", gNum);
result.append(chr);
sprintf_s(chr, "%.2X", bNum);
result.append(chr);
result.append(llformat("%.2X", rNum));
result.append(llformat("%.2X", gNum));
result.append(llformat("%.2X", bNum));
return result;
}