compilation for macos

This commit is contained in:
Anatoly Baksheev 2011-06-01 15:35:30 +00:00
parent bf05872929
commit 1eba407378

View File

@ -88,16 +88,18 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF
matPrint(canvas, 1, fontColorRed, ss); matPrint(canvas, 1, fontColorRed, ss);
if (bHelp) if (bHelp)
{ {
matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU")); // by Anatoly. MacOS fix. ostringstream(const string&) is a private
matPrint(canvas, 3, fontColorNV, ostringstream("M - switch OneFace / MultiFace")); //matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU"));
matPrint(canvas, 4, fontColorNV, ostringstream("F - toggle rectangles Filter")); matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "Space - switch GPU / CPU"));
matPrint(canvas, 5, fontColorNV, ostringstream("H - toggle hotkeys help")); matPrint(canvas, 3, fontColorNV, (ostringstream&)(ostringstream() << "M - switch OneFace / MultiFace"));
matPrint(canvas, 6, fontColorNV, ostringstream("1/Q - increase/decrease scale")); matPrint(canvas, 4, fontColorNV, (ostringstream&)(ostringstream() << "F - toggle rectangles Filter"));
matPrint(canvas, 5, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));
matPrint(canvas, 6, fontColorNV, (ostringstream&)(ostringstream() << "1/Q - increase/decrease scale"));
} }
else else
{ {
matPrint(canvas, 2, fontColorNV, ostringstream("H - toggle hotkeys help")); matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));
} }
} }