Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-21 22:03:26 +0000
committerStijn Buys <ingar@osirion.org>2008-07-21 22:03:26 +0000
commit980c5c41dc8e88ab3e7a5751348a92a0662a2ea4 (patch)
tree638fc130c94973038b76b50c1fd68a74c2dcdd9f /src/client/video.cc
parent5a4bcd856787af106807b0b18fba8e4e2fae63ef (diff)
prepare keybinds for modifier keys, fix for the camera clipping issue
Diffstat (limited to 'src/client/video.cc')
-rw-r--r--src/client/video.cc10
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;