mirror of
https://github.com/nicbarker/clay.git
synced 2025-05-13 13:58:07 +00:00
Compare commits
No commits in common. "f7bdffcb8a991ef46bcfa4bb60b1031e59d33342" and "fd2b13974c7860c2f1e5d570946b265008c0e9bd" have entirely different histories.
f7bdffcb8a
...
fd2b13974c
3
.github/workflows/cmake-multi-platform.yml
vendored
3
.github/workflows/cmake-multi-platform.yml
vendored
@ -62,8 +62,7 @@ jobs:
|
||||
|
||||
- name: Install Dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get update -y
|
||||
run: |
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y libwayland-dev
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y pkg-config
|
||||
|
4
clay.h
4
clay.h
@ -1541,6 +1541,7 @@ void Clay__ConfigureOpenElement(const Clay_ElementDeclaration declaration) {
|
||||
|
||||
uint8_t* decData = (uint8_t*)&declaration;
|
||||
for (int32_t i = 0; i < context->declarationPaddingMask.length; i++) {
|
||||
int offset = context->declarationPaddingMask.internalArray[i];
|
||||
*(decData + context->declarationPaddingMask.internalArray[i]) = 0;
|
||||
}
|
||||
|
||||
@ -3293,12 +3294,11 @@ void Clay_SetPointerState(Clay_Vector2 position, bool isPointerDown) {
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t Clay__PoisonStack(Clay_Context* context) {
|
||||
void Clay__PoisonStack(Clay_Context* context) {
|
||||
uint8_t stackmem[1024];
|
||||
for (int i = 0; i < 1024; i++) {
|
||||
stackmem[i] = 0xce;
|
||||
}
|
||||
return stackmem[0];
|
||||
}
|
||||
|
||||
void Clay__CalculateDeclarationPaddingMask(const Clay_ElementDeclaration dec, Clay_Context* context) {
|
||||
|
@ -5,5 +5,5 @@ set(CMAKE_C_STANDARD 99)
|
||||
|
||||
add_executable(clay_official_website main.c)
|
||||
|
||||
target_compile_options(clay_official_website PUBLIC)
|
||||
target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas -Wno-error=missing-braces)
|
||||
target_include_directories(clay_official_website PUBLIC .)
|
||||
|
Loading…
Reference in New Issue
Block a user