summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-20 14:57:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-20 14:57:37 +0200
commit2f528db30a14ce1e1d2cb6d472bbacff1ed7ef4a (patch)
tree7d6ba42e93ff6b749fcbffa621a9aeaacd3d35a7 /osd.c
parent8ff2c73d9b4bf716e80b2c56e15badc2eb17427c (diff)
downloadvdr-2f528db30a14ce1e1d2cb6d472bbacff1ed7ef4a.tar.gz
vdr-2f528db30a14ce1e1d2cb6d472bbacff1ed7ef4a.tar.bz2
Fixed a typo in the function name of cOsd::SetOsdPosition() and added a range check to it
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osd.c b/osd.c
index bfc69d64..ec7f9a3c 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.70 2007/06/17 13:54:34 kls Exp $
+ * $Id: osd.c 1.71 2007/07/20 14:51:36 kls Exp $
*/
#include "osd.h"
@@ -668,12 +668,12 @@ cOsd::~cOsd()
isOpen--;
}
-void cOsd::SetOsdPostion(int Left, int Top, int Width, int Height)
+void cOsd::SetOsdPosition(int Left, int Top, int Width, int Height)
{
osdLeft = Left;
osdTop = Top;
- osdWidth = Width;
- osdHeight = Height;
+ osdWidth = min(max(Width, MINOSDWIDTH), MAXOSDWIDTH);
+ osdHeight = min(max(Height, MINOSDHEIGHT), MAXOSDHEIGHT);
}
void cOsd::SetAntiAliasGranularity(uint FixedColors, uint BlendColors)