mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-24 15:18:04 +00:00
Compare commits
1 Commits
b183b51463
...
481c4987b5
Author | SHA1 | Date | |
---|---|---|---|
|
481c4987b5 |
5
clay.h
5
clay.h
@ -1654,8 +1654,6 @@ void Clay__CloseElement(void) {
|
|||||||
elementHasScrollVertical = config->config.scrollElementConfig->vertical;
|
elementHasScrollVertical = config->config.scrollElementConfig->vertical;
|
||||||
context->openClipElementStack.length--;
|
context->openClipElementStack.length--;
|
||||||
break;
|
break;
|
||||||
} else if (config->type == CLAY__ELEMENT_CONFIG_TYPE_FLOATING) {
|
|
||||||
context->openClipElementStack.length--;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1935,9 +1933,6 @@ void Clay__ConfigureOpenElementPtr(const Clay_ElementDeclaration *declaration) {
|
|||||||
if (!openLayoutElementId.id) {
|
if (!openLayoutElementId.id) {
|
||||||
openLayoutElementId = Clay__HashString(CLAY_STRING("Clay__FloatingContainer"), context->layoutElementTreeRoots.length, 0);
|
openLayoutElementId = Clay__HashString(CLAY_STRING("Clay__FloatingContainer"), context->layoutElementTreeRoots.length, 0);
|
||||||
}
|
}
|
||||||
int32_t currentElementIndex = Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 1);
|
|
||||||
Clay__int32_tArray_Set(&context->layoutElementClipElementIds, currentElementIndex, clipElementId);
|
|
||||||
Clay__int32_tArray_Add(&context->openClipElementStack, clipElementId);
|
|
||||||
Clay__LayoutElementTreeRootArray_Add(&context->layoutElementTreeRoots, CLAY__INIT(Clay__LayoutElementTreeRoot) {
|
Clay__LayoutElementTreeRootArray_Add(&context->layoutElementTreeRoots, CLAY__INIT(Clay__LayoutElementTreeRoot) {
|
||||||
.layoutElementIndex = Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 1),
|
.layoutElementIndex = Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 1),
|
||||||
.parentId = floatingConfig.parentId,
|
.parentId = floatingConfig.parentId,
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include <SDL_ttf.h>
|
#include <SDL_ttf.h>
|
||||||
#include <SDL_image.h>
|
#include <SDL_image.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159
|
#define M_PI 3.14159
|
||||||
|
Loading…
Reference in New Issue
Block a user