linux work

Merge branch 'master' of https://github.com/mfeemster/fractorium
This commit is contained in:
mfeemster 2014-12-08 02:19:29 -08:00
commit 9263906cb5
3 changed files with 618 additions and 618 deletions

View File

@ -185,7 +185,7 @@ public:
//If this xform was already part of a different ember, then do not assign, else do. //If this xform was already part of a different ember, then do not assign, else do.
if (!m_ParentEmber && (typeid(T) == typeid(U))) if (!m_ParentEmber && (typeid(T) == typeid(U)))
m_ParentEmber = static_cast<Ember<T>*>(xform.ParentEmber()); m_ParentEmber = reinterpret_cast<Ember<T>*>(xform.ParentEmber());
CopyVec<T, U>(m_Xaos, xform.XaosVec()); CopyVec<T, U>(m_Xaos, xform.XaosVec());
CopyVec(m_Motion, xform.m_Motion); CopyVec(m_Motion, xform.m_Motion);

View File

@ -79,30 +79,30 @@ static bool WriteJpeg(const char* filename, byte* image, size_t width, size_t he
//Write comments to jpeg. //Write comments to jpeg.
if (enableComments) if (enableComments)
{ {
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(verString), strlen(verString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(verString), (uint)strlen(verString));
if (nick != "") if (nick != "")
{ {
snprintf_s(nickString, 64, "flam3_nickname: %s", nick.c_str()); snprintf_s(nickString, 64, "flam3_nickname: %s", nick.c_str());
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(nickString), strlen(nickString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(nickString), (uint)strlen(nickString));
} }
if (url != "") if (url != "")
{ {
snprintf_s(urlString, 128, "flam3_url: %s", url.c_str()); snprintf_s(urlString, 128, "flam3_url: %s", url.c_str());
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(urlString), strlen(urlString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(urlString), (uint)strlen(urlString));
} }
if (id != "") if (id != "")
{ {
snprintf_s(idString, 128, "flam3_id: %s", id.c_str()); snprintf_s(idString, 128, "flam3_id: %s", id.c_str());
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(idString), strlen(idString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(idString), (uint)strlen(idString));
} }
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(bvString), strlen(bvString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(bvString), (uint)strlen(bvString));
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(niString), strlen(niString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(niString), (uint)strlen(niString));
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(rtString), strlen(rtString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(rtString), (uint)strlen(rtString));
jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(genomeString), strlen(genomeString)); jpeg_write_marker(&info, JPEG_COM, reinterpret_cast<byte*>(genomeString), (uint)strlen(genomeString));
} }
for (i = 0; i < height; i++) for (i = 0; i < height; i++)

File diff suppressed because it is too large Load Diff