From de833ccfc206dc0632ea254f86addaf7d55d7cea Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Wed, 7 Jun 2017 12:17:36 +0800 Subject: [PATCH] Fix Compile and link error --- MiniEngine.cpp | 2 +- MiniEngine_Test.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 014e917..ae58468 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -2114,7 +2114,7 @@ namespace MiniEngine std::tuple SDLSystem::GetIMGLinkedVersion() { const SDL_version* ptr=IMG_Linked_Version(); - return std::make_tuple(); + return std::make_tuple(ptr->major,ptr->minor,ptr->patch); } //static diff --git a/MiniEngine_Test.h b/MiniEngine_Test.h index b05319b..f574c82 100644 --- a/MiniEngine_Test.h +++ b/MiniEngine_Test.h @@ -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 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 {