summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-17 16:38:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-17 16:38:50 +0200
commitc1ddc63fda4b2896eee72bacc1f935b1194b3800 (patch)
tree9fb699d56895fba3474386e289f4ed3c455b503c /osd.h
parent4f889749b3d4a6f3e0c24cc03bd4e432c6638cdf (diff)
downloadvdr-c1ddc63fda4b2896eee72bacc1f935b1194b3800.tar.gz
vdr-c1ddc63fda4b2896eee72bacc1f935b1194b3800.tar.bz2
Implemented taBorder alignment flag
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/osd.h b/osd.h
index f5f8b656..9f951bbb 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 2.15 2011/12/04 13:38:17 kls Exp $
+ * $Id: osd.h 2.16 2012/05/17 15:09:35 kls Exp $
*/
#ifndef __OSD_H
@@ -25,6 +25,7 @@
#define ALPHA_TRANSPARENT 0x00
#define ALPHA_OPAQUE 0xFF
#define IS_OPAQUE(c) ((c >> 24) == ALPHA_OPAQUE)
+#define TEXT_ALIGN_BORDER 10 // fraction of the font height used for sizing border
enum {
//AARRGGBB
@@ -151,6 +152,7 @@ enum eTextAlignment { taCenter = 0x00,
taRight = 0x02,
taTop = 0x04,
taBottom = 0x08,
+ taBorder = 0x10, // keeps some distance from the left or right alignment edge
taDefault = taTop | taLeft
};