From 3f6ecee4f766ac98d522efc5b38b19d751be44e0 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 11 Nov 2012 19:27:57 +0000
Subject: [PATCH] fixme

---
 Graphics/drawContext.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Graphics/drawContext.cpp b/Graphics/drawContext.cpp
index 19d60fbfd5..76a7cdbcd1 100644
--- a/Graphics/drawContext.cpp
+++ b/Graphics/drawContext.cpp
@@ -358,8 +358,9 @@ void drawContext::drawBackgroundGradient()
   }
 #if defined(HAVE_POPPLER)
   else if(CTX::instance()->bgGradient == 4){ // PDF @ background
-    GLuint texture=gmshPopplerWrapper::getTextureForPage(800,600);
-    glEnable( GL_TEXTURE_2D );
+    // FIXME: this should move to drawBackgroundImage below!
+    GLuint texture = gmshPopplerWrapper::getTextureForPage(800,600);
+    glEnable(GL_TEXTURE_2D);
     glBindTexture(GL_TEXTURE_2D,texture);
     glBegin(GL_QUADS);
     glColor4ubv((GLubyte *) & CTX::instance()->color.bg);
@@ -370,7 +371,7 @@ void drawContext::drawBackgroundGradient()
     int dw_im = gmshPopplerWrapper::width();
     int dh_im = gmshPopplerWrapper::height();
 
-    // consterve aspect ratio : dw / dh = dw_im / dh_im
+    // conserve aspect ratio : dw / dh = dw_im / dh_im
     //    dw = dh * dw_im / dh_im;
     dh = dw * dh_im / dw_im;
 
-- 
GitLab