Fix Compile and link error

This commit is contained in:
Kirigaya Kazuto 2017-06-07 12:17:36 +08:00
parent d4aa4cbbaa
commit de833ccfc2
2 changed files with 3 additions and 2 deletions

View File

@ -2114,7 +2114,7 @@ namespace MiniEngine
std::tuple<int,int,int> SDLSystem::GetIMGLinkedVersion() std::tuple<int,int,int> SDLSystem::GetIMGLinkedVersion()
{ {
const SDL_version* ptr=IMG_Linked_Version(); const SDL_version* ptr=IMG_Linked_Version();
return std::make_tuple(); return std::make_tuple(ptr->major,ptr->minor,ptr->patch);
} }
//static //static

View File

@ -13,7 +13,8 @@ void GetMD5Raw(unsigned char* buffer,unsigned int bufferLen,unsigned char* outbu
int GetCRC32(unsigned char* buffer,unsigned int bufferLen,uint32_t& out_CRCResult); int GetCRC32(unsigned char* buffer,unsigned int bufferLen,uint32_t& out_CRCResult);
int CompareSurface(const Surface& surface1,const Surface& surface2,int allowableError); /// Compare two surfaces. Currently, Surface::getRawPointer() does not has constant attribute.
int CompareSurface(Surface& surface1,Surface& surface2,int allowableError);
class UniRandom class UniRandom
{ {