From 55bb2a0e116675ef76fb3bee60a19f0ccd5239f8 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 f1fdba6..d711a67 100644 --- a/app/ViewArea.cpp +++ b/app/ViewArea.cpp @@ -424,7 +424,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 ) );