implemented addTextOpenGl under Gtk

This commit is contained in:
Vladislav Vinogradov
2011-11-28 12:35:05 +00:00
parent 07debd6cb5
commit 0403746636
2 changed files with 258 additions and 19 deletions

View File

@@ -190,7 +190,7 @@ namespace
weight = FW_BLACK;
break;
default:
cvError(CV_StsBadArg, "getFontWidthW32", "Unsopported fonr width", __FILE__, __LINE__);
cvError(CV_StsBadArg, "getFontWidthW32", "Unsopported font width", __FILE__, __LINE__);
};
return weight;
@@ -222,7 +222,7 @@ namespace
SelectObject(hDC, font);
if (!wglUseFontBitmaps(hDC, 32, 96, base_))
cvError(CV_OpenGlApiCallError, "OpenGlText::set", "Can't create font", __FILE__, __LINE__);
cvError(CV_OpenGlApiCallError, "OpenGlFont", "Can't create font", __FILE__, __LINE__);
fontName_ = fontName;
fontHeight_ = fontHeight;