Skip to content
Snippets Groups Projects
Commit 3f6ecee4 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fixme

parent 7819c9e1
No related branches found
No related tags found
No related merge requests found
...@@ -358,6 +358,7 @@ void drawContext::drawBackgroundGradient() ...@@ -358,6 +358,7 @@ void drawContext::drawBackgroundGradient()
} }
#if defined(HAVE_POPPLER) #if defined(HAVE_POPPLER)
else if(CTX::instance()->bgGradient == 4){ // PDF @ background else if(CTX::instance()->bgGradient == 4){ // PDF @ background
// FIXME: this should move to drawBackgroundImage below!
GLuint texture = gmshPopplerWrapper::getTextureForPage(800,600); GLuint texture = gmshPopplerWrapper::getTextureForPage(800,600);
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D,texture); glBindTexture(GL_TEXTURE_2D,texture);
...@@ -370,7 +371,7 @@ void drawContext::drawBackgroundGradient() ...@@ -370,7 +371,7 @@ void drawContext::drawBackgroundGradient()
int dw_im = gmshPopplerWrapper::width(); int dw_im = gmshPopplerWrapper::width();
int dh_im = gmshPopplerWrapper::height(); 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; // dw = dh * dw_im / dh_im;
dh = dw * dh_im / dw_im; dh = dw * dh_im / dw_im;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment