From 66c65beea7ac5c6dbc416b89b3a5800d31a0ecd7 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 15 Jan 2015 11:33:58 +0100 Subject: Added cOsdProvider::OsdSizeChanged() --- menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index 08445bc1..a48bfdaf 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 3.27 2015/01/15 10:31:41 kls Exp $ + * $Id: menu.c 3.28 2015/01/15 11:14:21 kls Exp $ */ #include "menu.h" @@ -4033,6 +4033,7 @@ cDisplayChannel::cDisplayChannel(int Number, bool Switched) displayChannel = Skins.Current()->DisplayChannel(withInfo); number = 0; timeout = Switched || Setup.TimeoutRequChInfo; + cOsdProvider::OsdSizeChanged(osdState); // just to get the current state positioner = NULL; channel = Channels.GetByNumber(Number); lastPresent = lastFollowing = NULL; @@ -4118,6 +4119,10 @@ cChannel *cDisplayChannel::NextAvailableChannel(cChannel *Channel, int Direction eOSState cDisplayChannel::ProcessKey(eKeys Key) { + if (cOsdProvider::OsdSizeChanged(osdState)) { + delete displayChannel; + displayChannel = Skins.Current()->DisplayChannel(withInfo); + } cChannel *NewChannel = NULL; if (Key != kNone) lastTime.Set(); -- cgit v1.2.3