From 087a0a007c46ac19b110b3adcfd5e7c937069e86 Mon Sep 17 00:00:00 2001
From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Date: Fri, 18 Sep 2009 07:15:10 +0000
Subject: [PATCH] Fix scaled window mode.

---
 backend/Renderer_ogl.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/backend/Renderer_ogl.cpp b/backend/Renderer_ogl.cpp
index 3c08e7a..bc08e7b 100644
--- a/backend/Renderer_ogl.cpp
+++ b/backend/Renderer_ogl.cpp
@@ -791,6 +791,9 @@ public:
     
     _width  = fabsf(x1 - x0);
     _height = fabsf(y1 - y0);
+    glScalef((float)twipsToPixels(_width) / (float)viewport_width,
+             (float)twipsToPixels(_height) / (float)viewport_height,
+             1.0f);
 
     // Setup the clear color. The actual clearing will happen in end_display.
     if (bg_color.m_a) {
-- 
1.6.0.4

