From 46c882c04d5200cc97262b15db2e4841b305664d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 26 Aug 2007 18:00:00 +0200 Subject: =?UTF-8?q?Version=201.5.9=20-=20Fixed=20handling=20locale=20direc?= =?UTF-8?q?tories=20with=20a=20large=20number=20of=20entries=20(thanks=20t?= =?UTF-8?q?o=20=20=20Anssi=20Hannula).=20-=20Updated=20Turkish=20language?= =?UTF-8?q?=20texts=20(thanks=20to=20Oktay=20Yolge=C3=A7en).=20-=20Fixed?= =?UTF-8?q?=20stripping=20the=20context=20in=20I18nTranslate()=20(reported?= =?UTF-8?q?=20by=20Christian=20=20=20Wieninger).=20-=20Fixed=20detecting?= =?UTF-8?q?=20whether=20a=20particular=20locale=20is=20actually=20supporte?= =?UTF-8?q?d.=20-=20Added=20a=20note=20about=20LANG=20having=20to=20be=20s?= =?UTF-8?q?et=20to=20a=20valid=20locale=20in=20INSTALL=20=20=20(suggested?= =?UTF-8?q?=20by=20Matthias=20Fechner).=20-=20Fixed=20some=20compiler=20wa?= =?UTF-8?q?rnings=20with=20gcc-4.2.0=20(thanks=20to=20Matthias=20Schwarzot?= =?UTF-8?q?t).=20-=20Fixed=20setting=20the=20locale=20file=20name=20in=20i?= =?UTF-8?q?18n-to-gettext.pl=20(thanks=20to=20Matthias=20=20=20Schwarzott)?= =?UTF-8?q?.=20-=20Changed=20the=20default=20for=20LOCDIR=20in=20Makefile?= =?UTF-8?q?=20and=20Make.config.template=20to=20=20=20"./locale",=20so=20t?= =?UTF-8?q?hat=20internationalization=20works=20by=20default=20when=20runn?= =?UTF-8?q?ing=20VDR=20=20=20from=20within=20its=20source=20directory=20(s?= =?UTF-8?q?uggested=20by=20Anssi=20Hannula).=20-=20Added=20the=20new=20i18?= =?UTF-8?q?n=20macro=20trVDR(),=20which=20can=20be=20used=20by=20plugins?= =?UTF-8?q?=20to=20mark=20=20=20texts=20they=20want=20to=20reuse=20from=20?= =?UTF-8?q?VDR's=20core=20translations=20(suggested=20by=20Matthias=20=20?= =?UTF-8?q?=20Becker).=20-=20VDR=20now=20uses=20the=20default=20configurat?= =?UTF-8?q?ion=20directory=20as=20defined=20in=20the=20CONFDIR=20=20=20var?= =?UTF-8?q?able=20in=20the=20Makefile=20(thanks=20to=20Thomas=20Schmidt).?= =?UTF-8?q?=20-=20The=20SVDRP=20command=20LSTC=20can=20now=20list=20the=20?= =?UTF-8?q?channels=20with=20group=20separators=20if=20the=20=20=20option?= =?UTF-8?q?=20':groups'=20is=20given=20(thanks=20to=20Andreas=20Mair).=20-?= =?UTF-8?q?=20Added=20a=20missing=20error=20report=20to=20cCuttingThread::?= =?UTF-8?q?Action()=20(thanks=20to=20Udo=20=20=20Richter).=20-=20There=20c?= =?UTF-8?q?an=20now=20be=20more=20than=20one=20OSD=20at=20the=20same=20tim?= =?UTF-8?q?e.=20At=20any=20given=20time,=20=20=20however,=20only=20one=20o?= =?UTF-8?q?f=20them=20can=20be=20active=20(and=20thus=20visible).=20This?= =?UTF-8?q?=20is=20to=20=20=20allow=20displaying=20things=20like=20subtitl?= =?UTF-8?q?es=20in=20an=20easy=20way.=20A=20cOsd=20therefore=20=20=20now?= =?UTF-8?q?=20has=20a=20"Level",=20and=20only=20the=20OSD=20with=20the=20s?= =?UTF-8?q?mallest=20level=20will=20be=20=20=20displayed.=20The=20level=20?= =?UTF-8?q?0=20OSD=20is=20special,=20and=20there=20can=20only=20be=20one?= =?UTF-8?q?=20with=20=20=20this=20level.=20If=20there=20is=20more=20than?= =?UTF-8?q?=20one=20OSD=20with=20a=20particular=20level,=20only=20=20=20th?= =?UTF-8?q?e=20one=20that=20was=20created=20first=20will=20be=20displayed.?= =?UTF-8?q?=20=20=20Plugins=20that=20provide=20an=20OSD=20need=20to=20adju?= =?UTF-8?q?st=20their=20cOsdProvider::CreateOsd()=20=20=20function=20to=20?= =?UTF-8?q?hand=20through=20the=20Level.=20-=20Fixed=20checking=20for=20tt?= =?UTF-8?q?DolbyLast=20in=20cDevice::SetCurrentAudioTrack()=20(thanks=20?= =?UTF-8?q?=20=20to=20Marco=20Schl=C3=BC=C3=9Fler).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index bd77f85..28dbd5e 100644 --- a/tools.h +++ b/tools.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.107 2007/08/05 12:11:52 kls Exp $ + * $Id: tools.h 1.108 2007/08/25 14:16:39 kls Exp $ */ #ifndef __TOOLS_H @@ -464,6 +464,12 @@ public: Realloc(allocated * 4 / 2); // increase size by 50% data[size++] = Data; } + virtual void Remove(int Index) + { + if (Index < size - 1) + memmove(&data[Index], &data[Index + 1], (size - Index) * sizeof(T)); + size--; + } virtual void Clear(void) {} void Sort(__compar_fn_t Compare) { -- cgit v1.2.3