diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-09-19 19:53:42 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-09-19 19:53:42 -0400 |
commit | 9d33d175b5cd564e77bda07fcbce252477f7c40f (patch) | |
tree | 21eedba8ca61e6f4e6c5fc20bdfd0488b4c166c3 /themes/WebglContext.cpp | |
parent | de850676e79da39aec6f1ce0400cfa94cecbd744 (diff) |
Decently working autumn theme
Diffstat (limited to 'themes/WebglContext.cpp')
-rw-r--r-- | themes/WebglContext.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/WebglContext.cpp b/themes/WebglContext.cpp new file mode 100644 index 0000000..5ef5388 --- /dev/null +++ b/themes/WebglContext.cpp @@ -0,0 +1,11 @@ +#include "WebglContext.h" +#include <cstdio> + +EM_BOOL onScreenSizeChanged(int eventType, const EmscriptenUiEvent *uiEvent, void *userData) { + printf("Here\n"); + WebglContext* context = (WebglContext*)userData; + + + context->width = uiEvent->documentBodyClientWidth; + context->height = uiEvent->documentBodyClientHeight; +} |