mirror of
https://github.com/nicbarker/clay.git
synced 2025-05-13 13:58:07 +00:00
Compare commits
4 Commits
849e5cd207
...
70a8a65518
Author | SHA1 | Date | |
---|---|---|---|
|
70a8a65518 | ||
|
f7bdffcb8a | ||
|
e39b1b8cb1 | ||
|
dabc78419f |
1
.github/workflows/cmake-multi-platform.yml
vendored
1
.github/workflows/cmake-multi-platform.yml
vendored
@ -63,6 +63,7 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get update -y
|
||||
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,7 +1541,6 @@ 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;
|
||||
}
|
||||
|
||||
@ -3294,11 +3293,12 @@ void Clay_SetPointerState(Clay_Vector2 position, bool isPointerDown) {
|
||||
}
|
||||
}
|
||||
|
||||
void Clay__PoisonStack(Clay_Context* context) {
|
||||
uint8_t 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 -Wall -Werror -Wno-unknown-pragmas -Wno-error=missing-braces)
|
||||
target_compile_options(clay_official_website PUBLIC)
|
||||
target_include_directories(clay_official_website PUBLIC .)
|
||||
|
Loading…
Reference in New Issue
Block a user