|
From: Yoda-JM <yo...@us...> - 2011-02-07 14:21:56
|
Module: performous
Branch: opengl2
Commit: 927daffa973cdf885cd0a9d82838308a08317bb0
Author: Vincent Le Ligeour <yo...@us...>
Date: Mon Feb 7 15:21:23 2011 +0100
Fixed loading messages not properly shown
---
game/video_driver.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/game/video_driver.cc b/game/video_driver.cc
index 0e1b458..e7e0a71 100644
--- a/game/video_driver.cc
+++ b/game/video_driver.cc
@@ -91,6 +91,12 @@ Window::Window(unsigned int width, unsigned int height, bool fs): m_windowW(widt
.compileFile(getThemePath("shaders/dancenote.vert"))
.compileFile(getThemePath("shaders/dancenote.frag"))
.link();
+
+ double vx = 0.5f * (screen->w - s_width);
+ double vy = 0.5f * (screen->h - s_height);
+ double vw = s_width, vh = s_height;
+ glViewport(vx, vy, vw, vh); // Drawable area of the window (excluding black bars)
+ view(0);
}
Window::~Window() { }
|