simplify
This commit is contained in:
@@ -55,7 +55,7 @@ void ActorScroller::Load2(
|
|||||||
m_fNumItemsToDraw = fNumItemsToDraw;
|
m_fNumItemsToDraw = fNumItemsToDraw;
|
||||||
|
|
||||||
m_exprTransformFunction.SetFromExpression(
|
m_exprTransformFunction.SetFromExpression(
|
||||||
ssprintf("function(self,offset,itemIndex,numItems) return self:y(%f*offset) end",fItemHeight),
|
ssprintf("function(self,offset,itemIndex,numItems) self:y(%f*offset) end",fItemHeight),
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ public:
|
|||||||
|
|
||||||
bool operator<( const DisplayResolution &other ) const
|
bool operator<( const DisplayResolution &other ) const
|
||||||
{
|
{
|
||||||
#define COMPARE(x) if( x < other.x ) return true; else if( x > other.x ) return false;
|
#define COMPARE(x) if( x != other.x ) return x < other.x;
|
||||||
COMPARE( iWidth );
|
COMPARE( iWidth );
|
||||||
COMPARE( iHeight );
|
COMPARE( iHeight );
|
||||||
#undef COMPARE
|
#undef COMPARE
|
||||||
|
|||||||
Reference in New Issue
Block a user