mirror of
https://github.com/nicbarker/clay.git
synced 2026-06-21 00:08:56 +00:00
fix: correct unused variables and mispelling in export
This commit is contained in:
parent
e6cc36941a
commit
c3c5ba9366
1 changed files with 1 additions and 4 deletions
5
clay.h
5
clay.h
|
|
@ -3138,7 +3138,6 @@ void Clay__CalculateFinalLayout(float deltaTime, bool useStoredBoundingBoxes, bo
|
|||
dfsBuffer.length += currentElement->children.length;
|
||||
for (int32_t i = 0; i < currentElement->children.length; ++i) {
|
||||
Clay_LayoutElement *childElement = Clay_LayoutElementArray_Get(&context->layoutElements, currentElement->children.elements[i]);
|
||||
Clay_LayoutElementHashMapItem* childMapItem = Clay__GetHashMapItem(childElement->id);
|
||||
// Alignment along non layout axis
|
||||
if (layoutConfig->layoutDirection == CLAY_LEFT_TO_RIGHT) {
|
||||
currentElementTreeNode->nextChildOffset.y = currentElement->config.layout.padding.top;
|
||||
|
|
@ -4074,7 +4073,7 @@ void Clay_SetLayoutDimensions(Clay_Dimensions dimensions) {
|
|||
context->layoutDimensions = dimensions;
|
||||
}
|
||||
|
||||
CLAY_WASM_EXPORT("Clay_SetLayoutDimensions")
|
||||
CLAY_WASM_EXPORT("Clay_GetLayoutDimensions")
|
||||
Clay_Dimensions Clay_GetLayoutDimensions() {
|
||||
Clay_Context* context = Clay_GetCurrentContext();
|
||||
return context->layoutDimensions;
|
||||
|
|
@ -4378,7 +4377,6 @@ void Clay__CloneElementsWithExitTransition() {
|
|||
|
||||
for (int i = 0; i < context->transitionDatas.length; ++i) {
|
||||
Clay__TransitionDataInternal *data = Clay__TransitionDataInternalArray_Get(&context->transitionDatas, i);
|
||||
Clay_TransitionElementConfig* config = &data->elementThisFrame->config.transition;
|
||||
if (data->transitionOut) {
|
||||
Clay__int32_tArray bfsBuffer = context->openLayoutElementStack;
|
||||
bfsBuffer.length = 0;
|
||||
|
|
@ -4395,7 +4393,6 @@ void Clay__CloneElementsWithExitTransition() {
|
|||
for (int j = layoutElement->children.length - 1; j >= 0; --j) {
|
||||
Clay_LayoutElement* childElement = Clay_LayoutElementArray_GetCheckCapacity(&context->layoutElements, layoutElement->children.elements[j]);
|
||||
Clay__int32_tArray_Add(&bfsBuffer, nextIndex);
|
||||
Clay_LayoutElement* newChildElement = Clay_LayoutElementArray_Set_DontTouchLength(&context->layoutElements, nextIndex, *childElement);
|
||||
Clay__StringArray_Set_DontTouchLength(&context->layoutElementIdStrings, nextIndex, *Clay__StringArray_GetCheckCapacity(&context->layoutElementIdStrings, childElement - context->layoutElements.internalArray));
|
||||
Clay__int32_tArray_Set_DontTouchLength(&context->layoutElementChildren, nextChildIndex, nextIndex);
|
||||
nextIndex--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue