From c7ea90681bf4df1e8ba26e50bc065d26f24ce6b9 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 18 Oct 2005 12:26:32 +0000 Subject: *** empty log message *** --- src/player.cc | 15 +++++++++------ src/player.h | 3 +++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/player.cc b/src/player.cc index 23dbcf3..f6ac686 100644 --- a/src/player.cc +++ b/src/player.cc @@ -76,7 +76,7 @@ Player::Player(Info *ginfo, // Do not show the text showtext = false; - recording = true; + recording = false; recording_prev = !recording; cprchanged = false; } @@ -204,16 +204,19 @@ void Player::player() overlay->pixels, pitches); + // Set status text + if(recording != recording_prev) { + if(recording) yuv_draw->setTopText(TEXT_RECORDING); + else yuv_draw->setTopText(TEXT_STOPPED); + recording_prev = recording; + } + + // Draw overlaytext (if enabled) if(showtext) { if(cprchanged) { yuv_draw->setBottomText(cpr); cprchanged = false; } - if(recording != recording_prev) { - if(recording) yuv_draw->setTopText("Recording"); - else yuv_draw->setTopText("Stopped"); - recording_prev = recording; - } yuv_draw->draw(); } diff --git a/src/player.h b/src/player.h index 14d08ac..6d0cb15 100644 --- a/src/player.h +++ b/src/player.h @@ -55,6 +55,9 @@ #include "yuv_draw.h" +#define TEXT_RECORDING "Optager" +#define TEXT_STOPPED "Stoppet" + //#define DISPLAYWIDTH 720 // FIXME: These numbers suck! //#define DISPLAYHEIGHT 576 -- cgit v1.2.3