diff options
Diffstat (limited to 'src/GLView.cc')
-rw-r--r-- | src/GLView.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GLView.cc b/src/GLView.cc index 6598ed5..72818f3 100644 --- a/src/GLView.cc +++ b/src/GLView.cc @@ -39,8 +39,8 @@ void GLView::resizeGL(int w, int h) shaderinfo[9] = w; shaderinfo[10] = h; #endif - this->width = w; - this->height = h; + cam.pixel_width = w; + cam.pixel_height = h; glViewport(0, 0, w, h); w_h_ratio = sqrt((double)w / (double)h); } |