summaryrefslogtreecommitdiff
path: root/shared_cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-05-24 13:32:27 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-05-24 13:32:27 -0400
commitc5e5d7c939a2640763775b0688ed698c51ec28c1 (patch)
treeeaa9f5493cf218471f96207d2fa86a9192f07606 /shared_cpp
parentd5326e9f605e11fc33a7f37cc0ae674258de2424 (diff)
Applying force to the object using the mouse cursor
Diffstat (limited to 'shared_cpp')
-rw-r--r--shared_cpp/WebglContext.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared_cpp/WebglContext.h b/shared_cpp/WebglContext.h
index 017498f..8064b04 100644
--- a/shared_cpp/WebglContext.h
+++ b/shared_cpp/WebglContext.h
@@ -7,10 +7,10 @@
struct WebglContext {
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context;
- int width = 640;
- int height = 480;
+ int width = 800;
+ int height = 600;
- void init(const char* query, int inWidth = 640, int inHeight = 480) {
+ void init(const char* query, int inWidth = 800, int inHeight = 600) {
width = inWidth;
height = inHeight;
emscripten_set_canvas_element_size( query, width, height);