From c5e5d7c939a2640763775b0688ed698c51ec28c1 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Mon, 24 May 2021 13:32:27 -0400 Subject: Applying force to the object using the mouse cursor --- shared_cpp/WebglContext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shared_cpp') 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); -- cgit v1.2.1