X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=nengineoutput.c;h=76f8eb105fcdde8cd119f1317b2f621615ccc107;hb=7daad56f2ec6185fd0b1f0ca20f31a874bd2fc69;hp=cf304a0e4d2d797e86232315d3238696605b3664;hpb=cf79064032c57731c50c694ee83c22312976940d;p=xboard.git diff --git a/nengineoutput.c b/nengineoutput.c index cf304a0..76f8eb1 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 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(); } -