From 980c5c41dc8e88ab3e7a5751348a92a0662a2ea4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 21 Jul 2008 22:03:26 +0000 Subject: prepare keybinds for modifier keys, fix for the camera clipping issue --- src/client/video.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/video.cc') 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; -- cgit v1.2.3