From 0537b0a2b801dd0bf4e778d386c86c6a3b97d8ab Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 19 Nov 2010 18:07:59 +0000 Subject: [PATCH] more tweaks for 64-bit mac fltk --- Graphics/drawPost.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp index 931a2186a0..1bbd4faa17 100644 --- a/Graphics/drawPost.cpp +++ b/Graphics/drawPost.cpp @@ -273,6 +273,19 @@ static void drawGlyphs(drawContext *ctx, PView *p) Msg::Debug("drawing extra glyphs (this is slow...)"); + // speed-up string drawing with cocoa fltk +#if defined(__APPLE__) && defined(HAVE_64BIT_SIZE_T) +#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) + if(opt->intervalsType == PViewOptions::Numeric){ + int numStrings = 0; + for(int ent = 0; ent < data->getNumEntities(opt->timeStep); ent++) + numStrings += data->getNumElements(opt->timeStep, ent); + if(gl_texture_pile_height() < numStrings) + gl_texture_pile_height(numStrings); + } +#endif +#endif + double xyz[PVIEW_NMAX][3], val[PVIEW_NMAX][9]; for(int ent = 0; ent < data->getNumEntities(opt->timeStep); ent++){ if(data->skipEntity(opt->timeStep, ent)) continue; -- GitLab