Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions Build/scripts/setopts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ LIBSDIR=`pwd`

SMV_MAKE_OPTS=
TEST=
SANITIZE=
if [ "`uname`" == "Darwin" ]; then
GLUT=
GLIBDIROPT=
Expand All @@ -34,7 +33,7 @@ BUILD_LIBS=
BUILD_ALL=1
GLTYPE=COCOA
TESTOPT=
while getopts 'CfGhiIl:LprSX' OPTION
while getopts 'CfGhiIl:LprX' OPTION
do
case $OPTION in
C)
Expand All @@ -55,7 +54,6 @@ case $OPTION in
echo "-i - incremental build"
echo "-L - rebuild all libraries"
echo "-p - build a profiling version of smokeview"
echo "-S - build smokeview with sanitize debug options"
exit
;;
i)
Expand All @@ -77,9 +75,6 @@ case $OPTION in
;;
r)
;;
S)
SANITIZE=1
;;
X)
GLTYPE=XQUARTZ
;;
Expand All @@ -89,7 +84,6 @@ done
export SMV_MAKE_OPTS
export GLUT
export TEST
export SANITIZE
export GLTYPE

# this parameter is only for the mac
Expand Down
2 changes: 1 addition & 1 deletion Build/smokeview/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ gnu_linux_db : $(obj)

# ------------- gnu_linux ----------------

gnu_linux : CFLAGS = -O0 -ggdb -Wall -Wno-parentheses -Wno-unknown-pragmas \
gnu_linux : CFLAGS = -O0 -ggdb -Wall -Wno-parentheses -Wno-unknown-pragmas -Wno-comment -Wno-address\
-D NDEBUG $(CFLAGS_COM)
gnu_linux : CC = gcc
gnu_linux : CPP = g++
Expand Down
16 changes: 12 additions & 4 deletions Source/glui_v2_1_beta/glui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
#include "glui.h"
#include "stdinc.h"

static int allow_glui_post_redisplay = 1;

/************************************ GetGluiPostReDisplay ************/

int GetGluiPostReDisplay(void){
return allow_glui_post_redisplay;
}

/************************************ GluiPostRedisplayOn ************/

void GluiPostRedisplayOn(void){
Expand Down Expand Up @@ -986,7 +994,7 @@ void GLUI_Main::post_update_main_gfx( void )
if ( main_gfx_window_id > 0 ) {
old_window = glutGetWindow();
glutSetWindow( main_gfx_window_id );
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
if( old_window > 0 )
glutSetWindow( old_window );
}
Expand Down Expand Up @@ -1427,7 +1435,7 @@ void GLUI::close( void )

old_glut_window = glutGetWindow();
glutSetWindow( get_glut_window_id() );
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay() == 1)glutPostRedisplay();

glutSetWindow( old_glut_window );
}
Expand Down Expand Up @@ -1864,7 +1872,7 @@ void GLUI_Main::refresh( void )

if ( glut_window_id > 0 )
glutSetWindow( glut_window_id );
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay() ==1)glutPostRedisplay();

/* printf( "top_level: %d\n", top_level_glut_window_id );*/
glutSetWindow( top_level_glut_window_id );
Expand All @@ -1883,7 +1891,7 @@ void GLUI_Main::refresh( void )

glutReshapeWindow( new_w, new_h );

if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay() ==1)glutPostRedisplay();
}

glutSetWindow( orig);
Expand Down
3 changes: 1 addition & 2 deletions Source/glui_v2_1_beta/glui.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ enum GLUI_StdBitmaps_Codes {
GLUI_STDBITMAP_NUM_ITEMS
};

static int allow_glui_post_redisplay=1;

extern "C" int GetGluiPostReDisplay(void);
extern "C" void GluiPostRedisplayOn(void);
extern "C" void GluiPostRedisplayOff(void);

Expand Down
6 changes: 3 additions & 3 deletions Source/glui_v2_1_beta/glui_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void GLUI_Control::set_w( int new_w )
if ( glui->get_glut_window_id() != -1 ) {
int orig = set_to_glut_window();
glutReshapeWindow( glui->main_panel->w, glui->main_panel->h );
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
/* printf( "Requesting a reshape to window %d: %d %d\n",
glutGetWindow(),
glui->main_panel->w, glui->main_panel->h );*/
Expand All @@ -505,7 +505,7 @@ void GLUI_Control::set_h( int new_h )
if ( glui->get_glut_window_id() != -1 ) {
int orig = set_to_glut_window();
glutReshapeWindow( glui->main_panel->w, glui->main_panel->h );
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
restore_window(orig);
}
}
Expand All @@ -522,7 +522,7 @@ void GLUI_Control::set_alignment( int new_align )

if ( glui->get_glut_window_id() != -1 ) {
int orig = set_to_glut_window();
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
restore_window(orig);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/glui_v2_1_beta/glui_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void GLUI_Panel::set_type( int new_type )
update_size();

old_window = set_to_glut_window();
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
restore_window( old_window );
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/glui_v2_1_beta/glui_rollout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void GLUI_Rollout::open( void )
restore_window(orig);
refresh_glui_dialogs = 1;
SetMainWindow();
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
}


Expand Down Expand Up @@ -94,7 +94,7 @@ void GLUI_Rollout::close( void )
glui->refresh();
refresh_glui_dialogs = 1;
SetMainWindow();
if(allow_glui_post_redisplay==1)glutPostRedisplay();
if(GetGluiPostReDisplay()==1)glutPostRedisplay();
}


Expand Down
Loading