[med-svn] [SCM] aghermann branch, master, updated. 99b1d5a023eee9df74b0e0d6f894516fc79435ad

Andrei Zavada johnhommer at gmail.com
Sun Jul 7 23:03:54 UTC 2013


The following commit has been merged in the master branch:
commit 9accadd31d6d6207993e54bbdcafc64fd3e7a489
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Tue Jun 18 02:41:45 2013 +0300

    always draw SS/SU on selection

diff --git a/src/aghermann/ui/sf/montage.cc b/src/aghermann/ui/sf/montage.cc
index 3b115cf..bc84823 100644
--- a/src/aghermann/ui/sf/montage.cc
+++ b/src/aghermann/ui/sf/montage.cc
@@ -357,14 +357,13 @@ draw_page( cairo_t *cr,
 			cairo_show_text( cr, __buf__);
 
 			// MC metrics
-			if ( _p.mode != SScoringFacility::TMode::marking &&
-			     schannel().type() == sigfile::SChannel::TType::eeg &&
+			if ( schannel().type() == sigfile::SChannel::TType::eeg &&
 			     selection_end_time - selection_start_time > 2. ) {
 
-				cairo_set_font_size( cr, 12);
+				cairo_set_font_size( cr, 10);
 				cairo_select_font_face( cr, "sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
-				snprintf_buf( "%4.2f / %4.2f",
-					      selection_SS, selection_SU);
+				snprintf_buf( "%4.2f (%3.1f / %3.1f)",
+					      selection_SS / selection_SU, selection_SS, selection_SU);
 				cairo_text_extents( cr, __buf__, &extents);
 				cairo_move_to( cr, ma+(me-ma)/2 - extents.width/2,
 					       pbot - (extents.width < me-ma ? 12 : 30));

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list