X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=nengineoutput.c;h=fab7ce64dfb16e686195268816964a4cf9d84e25;hb=fcc8546ae23f9aed992cd222bb1b9cab6ac642c1;hp=cf304a0e4d2d797e86232315d3238696605b3664;hpb=cf79064032c57731c50c694ee83c22312976940d;p=xboard.git diff --git a/nengineoutput.c b/nengineoutput.c index cf304a0..fab7ce6 100644 --- a/nengineoutput.c +++ b/nengineoutput.c @@ -5,7 +5,7 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancements Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * @@ -69,7 +69,7 @@ extern char *getenv(); int windowMode = 1; char *mem1, *mem2; // dummies, as this dialog can never be OK'ed -static int currentPV, highTextStart[2], highTextEnd[2]; +int highTextStart[2], highTextEnd[2]; int MemoProc P((Option *opt, int n, int x, int y, char *text, int index)); @@ -152,7 +152,7 @@ EngineOutputPopUp () static int needInit = TRUE; static char *title = N_("Engine output"); - if (GenericPopUp(engoutOptions, _(title), EngOutDlg, BoardWindow, NONMODAL, 1)) { + if (GenericPopUp(engoutOptions, _(title), EngOutDlg, BoardWindow, NONMODAL, appData.topLevel)) { if(engoutOptions[STRIDE-1].type != Break) DisplayFatalError(_("Mismatch of STRIDE in nengineoutput.c\nChange and recompile!"), 0, 2); AddHandler(&engoutOptions[MEMO], EngOutDlg, 6); @@ -192,4 +192,3 @@ EngineOutputProc () { if (!PopDown(EngOutDlg)) EngineOutputPopUp(); } -