diff options
author | deva <deva> | 2005-10-18 12:26:32 +0000 |
---|---|---|
committer | deva <deva> | 2005-10-18 12:26:32 +0000 |
commit | c7ea90681bf4df1e8ba26e50bc065d26f24ce6b9 (patch) | |
tree | 27462f54f8f87f6ef801258313d2b3f4a78c5a51 | |
parent | 4ab476ecf381943d7d1537c1dd82cf5783e00ad2 (diff) |
*** empty log message ***
-rw-r--r-- | src/player.cc | 15 | ||||
-rw-r--r-- | 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 |