1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed displaying colored button texts that are too long

This commit is contained in:
Klaus Schmidinger 2001-08-07 16:30:52 +02:00
parent f1c2d45c42
commit a57bcf4240
2 changed files with 6 additions and 2 deletions

View File

@ -621,3 +621,7 @@ Video Disk Recorder Revision History
- Ringbuffer uses semaphores to signal empty/full conditions. - Ringbuffer uses semaphores to signal empty/full conditions.
- Fixed calculating the timeout value in cFile::FileReady() (thanks to - Fixed calculating the timeout value in cFile::FileReady() (thanks to
Wolfgang Henselmann-Weiss). Wolfgang Henselmann-Weiss).
2001-08-07: Version 0.91
- Fixed displaying colored button texts that are too long.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: interface.c 1.39 2001/07/28 14:57:52 kls Exp $ * $Id: interface.c 1.40 2001/08/07 16:23:28 kls Exp $
*/ */
#include "interface.h" #include "interface.h"
@ -328,7 +328,7 @@ void cInterface::HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvb
{ {
if (open && Text) { if (open && Text) {
const int w = Width() / 4; const int w = Width() / 4;
int l = (w - strlen(Text)) / 2; int l = (w - int(strlen(Text))) / 2;
if (l < 0) if (l < 0)
l = 0; l = 0;
cDvbApi::PrimaryDvbApi->Fill(Index * w, -1, w, 1, BgColor); cDvbApi::PrimaryDvbApi->Fill(Index * w, -1, w, 1, BgColor);