Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Martin/fix background clear #75

Merged
merged 12 commits into from
Jun 18, 2024
4 changes: 2 additions & 2 deletions sketches/test-clear/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ wasmFlags=(--target=wasm32 \
-I "$ORCA_DIR"/src/ext)

# build sample as wasm module and link it with the orca module
clang "${wasmFlags[@]}" -L "$ORCA_DIR"/bin -lorca_wasm -o module.wasm src/main.c
clang "${wasmFlags[@]}" -L "$ORCA_DIR"/bin -lorca_wasm -o module.wasm main.c

# create app directory and copy files into it
orca bundle --name Clock --icon icon.png --resource-dir data module.wasm
orca bundle --name Test module.wasm
3 changes: 2 additions & 1 deletion src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@ i32 orca_runloop(void* user)
}
else
{
oc_set_color_rgba(1, 0, 0, 1);
oc_surface_bring_to_front(app->debugOverlay.surface);
oc_set_color_rgba(0, 0, 0, 0);
oc_clear();
}

Expand Down