J :
* Update for linux support.
This commit is contained in:
@@ -144,7 +144,7 @@ void JSprite::Render()
|
||||
// //mQuad->SetColor(ARGB(alpha,255,255,255));
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
mFrames[mCurrentFrame]->SetColor(alpha<<24 | mColor);
|
||||
// mQuad->SetFlip(mFlipped[mCurrentFrame], false);
|
||||
#else
|
||||
@@ -305,7 +305,7 @@ void JSprite::SetHotSpot(float x, float y, int index)
|
||||
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
void JSprite::SetColor(PIXEL_TYPE color) { mColor = (color&0x00ffffff); }
|
||||
#else
|
||||
void JSprite::SetColor(PIXEL_TYPE color) { mColor = (color&~MASK_ALPHA); }
|
||||
@@ -344,7 +344,7 @@ void JSprite::SetCurrentFrameIndex(int frame)
|
||||
|
||||
JQuad* JSprite::GetCurrentFrame()
|
||||
{
|
||||
if (mCurrentFrame < mFrames.size())
|
||||
if (mCurrentFrame < (signed int)mFrames.size())
|
||||
return mFrames[mCurrentFrame];
|
||||
else
|
||||
return NULL;
|
||||
@@ -358,7 +358,7 @@ int JSprite::GetFrameCount()
|
||||
|
||||
JQuad* JSprite::GetFrame(int index)
|
||||
{
|
||||
if (index < mFrames.size())
|
||||
if (index < (signed int)mFrames.size())
|
||||
return mFrames[index];
|
||||
else
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user