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

more tweaks for 64-bit mac fltk

parent 8e86849c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment