[deploy] fix SpriteFrame::Split
This commit is contained in:
parent
44abd8f220
commit
b829d724c5
|
|
@ -142,7 +142,7 @@
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\ShapeActor.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\ShapeActor.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\GifSprite.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\GifSprite.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\LayerActor.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\LayerActor.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\SpriteFrame.h.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\SpriteFrame.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\Stage.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\Stage.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\Sprite.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\Sprite.cpp" />
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\TextActor.cpp" />
|
<ClCompile Include="..\..\src\kiwano\2d\TextActor.cpp" />
|
||||||
|
|
|
||||||
|
|
@ -641,7 +641,7 @@
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\animation\FrameSequence.cpp">
|
<ClCompile Include="..\..\src\kiwano\2d\animation\FrameSequence.cpp">
|
||||||
<Filter>2d\animation</Filter>
|
<Filter>2d\animation</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\SpriteFrame.h.cpp">
|
<ClCompile Include="..\..\src\kiwano\2d\SpriteFrame.cpp">
|
||||||
<Filter>2d</Filter>
|
<Filter>2d</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\src\kiwano\2d\transition\Transition.cpp">
|
<ClCompile Include="..\..\src\kiwano\2d\transition\Transition.cpp">
|
||||||
|
|
|
||||||
|
|
@ -126,10 +126,13 @@ Vector<SpriteFrame> SpriteFrame::Split(int cols, int rows, int max_num, float pa
|
||||||
++current_num;
|
++current_num;
|
||||||
|
|
||||||
dtx += (width + padding_x);
|
dtx += (width + padding_x);
|
||||||
|
|
||||||
|
if (max_num > 0 && current_num >= max_num)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
dty += (height + padding_y);
|
dty += (height + padding_y);
|
||||||
|
|
||||||
if (max_num > 0 && current_num == max_num)
|
if (max_num > 0 && current_num >= max_num)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return frames;
|
return frames;
|
||||||
Loading…
Reference in New Issue