From 4f5d8f4cd6ac55b24272df88204249b982cfd247 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 2 Feb 2015 15:58:12 +0000 Subject: [PATCH] Fix pixel value in gray images --- app/ViewArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ViewArea.cpp b/app/ViewArea.cpp index 711821e..90ab4c3 100644 --- a/app/ViewArea.cpp +++ b/app/ViewArea.cpp @@ -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 ) );