X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainclock.C;h=ddee51a23634249d8a28b7f1328f4a6a8230934b;hb=21eb2e0b479adf7bf846b835e5c7d9613b6f1a6d;hp=f03ac9d0aa7a87f1b78c25c1be297f91d51f120d;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/mainclock.C b/cinelerra-5.1/cinelerra/mainclock.C index f03ac9d0..ddee51a2 100644 --- a/cinelerra-5.1/cinelerra/mainclock.C +++ b/cinelerra-5.1/cinelerra/mainclock.C @@ -1,7 +1,7 @@ /* * CINELERRA - * Copyright (C) 1997-2011 Adam Williams + * Copyright (C) 1997-2017 Adam Williams * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,7 +27,8 @@ #include "theme.h" MainClock::MainClock(MWindow *mwindow, int x, int y, int w) - : BC_Title(x, y, "", MEDIUM_7SEGMENT, BLACK, 0, w) + : BC_Title(x, y, "", CLOCKFONT, //MEDIUM_7SEGMENT, + mwindow->theme->clock_fg_color, 0, w) { this->mwindow = mwindow; position_offset = 0; @@ -57,7 +58,10 @@ void MainClock::update(double position) unlock_window(); } - - - +void MainClock::clear() +{ + lock_window("MainClock::clear"); + BC_Title::update(""); + unlock_window(); +}