diff --git a/web/zm_html_view_event.php b/web/zm_html_view_event.php index 16519cf91..99843076e 100644 --- a/web/zm_html_view_event.php +++ b/web/zm_html_view_event.php @@ -79,8 +79,11 @@ if ( !isset( $rate ) ) $rate = reScale( RATE_SCALE, $event['DefaultRate'], ZM_WEB_DEFAULT_RATE ); if ( !isset( $scale ) ) $scale = reScale( SCALE_SCALE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ); +if ( $mode == "still" && $scale < SCALE_SCALE ) + $scale = SCALE_SCALE; -$frames_per_page = ZM_WEB_FRAMES_PER_LINE * ZM_WEB_FRAME_LINES; +$frames_per_line = reScale( ZM_WEB_FRAMES_PER_LINE, $scale ); +$frames_per_page = reScale( $frames_per_line * ZM_WEB_FRAME_LINES, $scale ); $paged = $event['Frames'] > $frames_per_page; @@ -145,6 +148,7 @@ var timeout_id = window.setTimeout( "window.location.replace( '?
+ @@ -160,6 +164,7 @@ var timeout_id = window.setTimeout( "window.location.replace( '? + @@ -170,6 +175,8 @@ Learn Pref:  + + @@ -187,9 +194,9 @@ Learn Pref:  - + @@ -232,11 +239,11 @@ if ( $mode == "still" && $paged && !empty($page) ) if ( false && $page > 2 ) { ?> -<<  +<<  -<  +<  -  +  >> >>>> -<?= $frame_id ?>/<?= $alarm_frame?$alarm_frame['Score']:0 ?> +<?= $frame_id ?>/<?= $alarm_frame?$alarm_frame['Score']:0 ?> diff --git a/web/zm_html_view_frame.php b/web/zm_html_view_frame.php index ee8842224..1356d6863 100644 --- a/web/zm_html_view_frame.php +++ b/web/zm_html_view_frame.php @@ -64,6 +64,8 @@ if ( file_exists( $anal_image ) ) $alarm_frame = $frame['Type']=='Alarm'; $img_class = $alarm_frame?"alarm":"normal"; +if ( !isset( $scale ) ) + $scale = max( reScale( SCALE_SCALE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_SCALE ); ?> @@ -97,23 +99,23 @@ function deleteEvent()   - + 1 ) { ?> - + 1 ) { ?> - + - + - + @@ -121,13 +123,13 @@ function deleteEvent()
       
- + - +