Fix pixel value in gray images

This commit is contained in:
jfmcarreira committed 2015-02-02 15:59:11 +00:00
1 parent 5773770fe0
commit 4f5d8f4cd6
1 file changed
+1 -1
+1 -1
View File
@@ -381,7 +381,7 @@ void ViewArea::paintEvent( QPaintEvent *event )
}
if( frFormat == PlaYUVerFrame::COLOR_GRAY )
{
sPixelValue = m_pcCurrFrame->getPixelValue( pixelTopLeft.x(), pixelTopLeft.y(), PlaYUVerFrame::COLOR_YUV );
sPixelValue = m_pcCurrFrame->getPixelValue( pixelTopLeft.x(), pixelTopLeft.y(), PlaYUVerFrame::COLOR_GRAY );
if( sPixelValue.Y() < 128 )
painter.setPen( QColor( Qt::white ) );