From b8a792cfb71f189c40aed5b51269a700752348c6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 27 Mar 2018 11:04:40 -0400 Subject: [PATCH] whitespace google code style --- src/zm_monitor.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 509a4d08f..0f15220bb 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1186,14 +1186,14 @@ bool Monitor::CheckSignal( const Image *image ) { break; } - if(colours == ZM_COLOUR_GRAY8) { + if ( colours == ZM_COLOUR_GRAY8 ) { if ( *(buffer+index) != grayscale_val ) return true; - } else if(colours == ZM_COLOUR_RGB24) { + } else if ( colours == ZM_COLOUR_RGB24 ) { const uint8_t *ptr = buffer+(index*colours); - if ( usedsubpixorder == ZM_SUBPIX_ORDER_BGR) { + if ( usedsubpixorder == ZM_SUBPIX_ORDER_BGR ) { if ( (RED_PTR_BGRA(ptr) != red_val) || (GREEN_PTR_BGRA(ptr) != green_val) || (BLUE_PTR_BGRA(ptr) != blue_val) ) return true; } else { @@ -1202,8 +1202,8 @@ bool Monitor::CheckSignal( const Image *image ) { return true; } - } else if(colours == ZM_COLOUR_RGB32) { - if ( usedsubpixorder == ZM_SUBPIX_ORDER_ARGB || usedsubpixorder == ZM_SUBPIX_ORDER_ABGR) { + } else if ( colours == ZM_COLOUR_RGB32 ) { + if ( usedsubpixorder == ZM_SUBPIX_ORDER_ARGB || usedsubpixorder == ZM_SUBPIX_ORDER_ABGR ) { if ( ARGB_ABGR_ZEROALPHA(*(((const Rgb*)buffer)+index)) != ARGB_ABGR_ZEROALPHA(colour_val) ) return true; } else { @@ -1212,10 +1212,10 @@ bool Monitor::CheckSignal( const Image *image ) { return true; } } - } - return( false ); - } - return( true ); + } // end for < signal_check_points + return false; + } // end if signal_check_points + return true; } bool Monitor::Analyse() {