X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=nengineoutput.c;h=7b013c016ca08b5d15c957e75c394d5cfa05cee0;hb=f360f5c49d27a95ca64e5755c42156ee1f7e95db;hp=dc84aa4ddb2856fd6e2ff38edc428ddf67a75922;hpb=b602e7faa8f3973c5b3c4ae00108eaea982ea196;p=xboard.git diff --git a/nengineoutput.c b/nengineoutput.c index dc84aa4..7b013c0 100644 --- a/nengineoutput.c +++ b/nengineoutput.c @@ -104,14 +104,14 @@ MemoProc (Option *opt, int n, int x, int y, char *text, int index) case 3: // press button 3 pressed = 1; if(LoadMultiPV(x, y, text, index, &start, &end, currentPV)) { -#ifdef TODO_GTK - XawTextSetSelection( w, start, end ); -#endif highTextStart[currentPV] = start; highTextEnd[currentPV] = end; + HighlightText(&engoutOptions[currentPV ? 12 : 5], start, end, TRUE); } break; case -3: // release button 3 pressed = 0; + if(highTextStart[currentPV] != highTextEnd[currentPV]) + HighlightText(&engoutOptions[currentPV ? 12 : 5], highTextStart[currentPV], highTextEnd[currentPV], FALSE); highTextStart[currentPV] = highTextEnd[currentPV] = 0; UnLoadPV(); break;