Merge branch 'master' of https://code.google.com/p/supertux
[supertux.git] / src / video / gl / gl_renderer.hpp
index 1352df9..d1b7026 100644 (file)
@@ -36,13 +36,13 @@ inline void intern_draw(float left, float top, float right, float bottom,
 {
   if(effect & HORIZONTAL_FLIP)
     std::swap(uv_left, uv_right);
-  if(effect & VERTICAL_FLIP) 
+
+  if(effect & VERTICAL_FLIP)
     std::swap(uv_top, uv_bottom);
 
   glBlendFunc(blend.sfactor, blend.dfactor);
   glColor4f(color.red, color.green, color.blue, color.alpha * alpha);
+
   // unrotated blit
   if (angle == 0.0f) {
     float vertices[] = {
@@ -109,10 +109,11 @@ class GLRenderer : public Renderer
 private:
   SDL_Window* window;
   SDL_GLContext glcontext;
+  SDL_Rect viewport;
   Size desktop_size;
   Size screen_size;
   bool fullscreen_active;
-       
+
   GLuint last_texture;
 
 public:
@@ -129,7 +130,7 @@ public:
   void resize(int w, int h);
   void apply_config();
   void apply_video_mode(const Size& size, bool fullscreen);
-  Vector to_logical(int physical_x, int physical_y, bool foobar);
+  Vector to_logical(int physical_x, int physical_y);
   void set_gamma(float gamma);
   SDL_Window* get_window() const { return window; }
 };