diff options
Diffstat (limited to 'src/client/video.cc')
-rw-r--r-- | src/client/video.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/video.cc b/src/client/video.cc index 3566481..56514a9 100644 --- a/src/client/video.cc +++ b/src/client/video.cc @@ -41,12 +41,12 @@ core::Cvar *r_fullscreen; void reset() { - // recalculate the video aspect - render::Camera::set_aspect((float) width / (float) height); - - // settup our viewport. + // setup our viewport. gl::viewport(0, 0, width, height ); + // recalculate the video aspect + render::Camera::set_aspect(width, height); + // reset the view view::reset(); } @@ -110,7 +110,7 @@ bool init() } con_print << " video mode " << width << "x" << height << "x" << bpp << "bpp" << std::endl; - render::Camera::set_aspect((float) width / (float) height); + render::Camera::set_aspect(width, height); (*r_width) = width; (*r_height) = height; |