You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the last line x value not 0 (in the above code is 300) , the code behave well, clipping is ok.
But if use 0 like bg.setContentSize(cc.size(0, 60)); clipping not work, you still can see the attached image which supposed to hidden totally.
The text was updated successfully, but these errors were encountered:
fresair
changed the title
uilayout clipping issue in newest code
uilayout clipping issue in latest code
May 17, 2019
in CCDrawNode.cpp
I roll back cursor = Triangulate::processTriangles(verts,cursor,count,fillColor); to old function blew, then the uilayout behave ok again.
for (int i = 0; i < count-2; i++)
{
V2F_C4B_T2F_Triangle tmp = {
{verts[0], Color4B(fillColor), __t(v2fzero)},
{verts[i+1], Color4B(fillColor), __t(v2fzero)},
{verts[i+2], Color4B(fillColor), __t(v2fzero)},
};
Steps to Reproduce:
add following code in hello world project
1.
But if use 0 like bg.setContentSize(cc.size(0, 60)); clipping not work, you still can see the attached image which supposed to hidden totally.
The text was updated successfully, but these errors were encountered: