mirror of https://github.com/axmolengine/axmol.git
Updated ios project configuration.
This commit is contained in:
parent
413bc3c343
commit
92e44f1c78
|
@ -111,8 +111,8 @@ CCControlSlider* CCControlSlider::sliderWithSprites(CCSprite * backgroundSprite,
|
||||||
void CCControlSlider::setValue(float value)
|
void CCControlSlider::setValue(float value)
|
||||||
{
|
{
|
||||||
//clamp between the two bounds
|
//clamp between the two bounds
|
||||||
value=max(value, m_minimumValue);
|
value=MAX(value, m_minimumValue);
|
||||||
value=min(value, m_maximumValue);
|
value=MIN(value, m_maximumValue);
|
||||||
|
|
||||||
//if we're snapping
|
//if we're snapping
|
||||||
if (m_snappingInterval>=0)
|
if (m_snappingInterval>=0)
|
||||||
|
|
|
@ -135,11 +135,11 @@ CCRect CCControlUtils::CCRectUnion(const CCRect& src1, const CCRect& src2)
|
||||||
{
|
{
|
||||||
CCRect result;
|
CCRect result;
|
||||||
|
|
||||||
float x1 = min(CCRect::CCRectGetMinX(src1), CCRect::CCRectGetMinX(src2));
|
float x1 = MIN(CCRect::CCRectGetMinX(src1), CCRect::CCRectGetMinX(src2));
|
||||||
float y1 = min(CCRect::CCRectGetMinY(src1), CCRect::CCRectGetMinY(src2));
|
float y1 = MIN(CCRect::CCRectGetMinY(src1), CCRect::CCRectGetMinY(src2));
|
||||||
|
|
||||||
float x2 = max(CCRect::CCRectGetMaxX(src1), CCRect::CCRectGetMaxX(src2));
|
float x2 = MAX(CCRect::CCRectGetMaxX(src1), CCRect::CCRectGetMaxX(src2));
|
||||||
float y2 = max(CCRect::CCRectGetMaxY(src1), CCRect::CCRectGetMaxY(src2));
|
float y2 = MAX(CCRect::CCRectGetMaxY(src1), CCRect::CCRectGetMaxY(src2));
|
||||||
|
|
||||||
result.origin=ccp(x1,x2);
|
result.origin=ccp(x1,x2);
|
||||||
result.size=CCSizeMake(x2-x1, y2-y1);
|
result.size=CCSizeMake(x2-x1, y2-y1);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
b9cda1260ba870cf512eba65876376a4b0f6c7df
|
bcd7cf5cfb02c02d077222016fec6b77a05ad107
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.h"
|
#include "CCControlButtonTest.h"
|
||||||
|
|
||||||
bool CCControlButtonTest_HelloVariableSize::init()
|
bool CCControlButtonTest_HelloVariableSize::init()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue