From d8f6341649120a3ae3d3bf82b2ce4c2b782a960d Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Mon, 23 Sep 2013 11:43:34 +0200 Subject: initial commit --- displaymessage.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 displaymessage.c (limited to 'displaymessage.c') diff --git a/displaymessage.c b/displaymessage.c new file mode 100644 index 00000000..ec23f23e --- /dev/null +++ b/displaymessage.c @@ -0,0 +1,22 @@ +#include "displaymessage.h" + +cFlatDisplayMessage::cFlatDisplayMessage(void) { + CreateFullOsd(); + TopBarCreate(); + MessageCreate(); +} + +cFlatDisplayMessage::~cFlatDisplayMessage() { +} + +void cFlatDisplayMessage::SetMessage(eMessageType Type, const char *Text) { + if (Text) + MessageSet(Type, Text); + else + MessageClear(); +} + +void cFlatDisplayMessage::Flush(void) { + TopBarUpdate(); + osd->Flush(); +} -- cgit v1.2.3