summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2015-02-20 16:01:04 +0000
committerphintuka <phintuka>2015-02-20 16:01:04 +0000
commitcefbad82636aa1905797b670d9b6804e432d3f09 (patch)
tree927caa1e40d49ee55572c5c8fc3004f181f0f022
parent40dcf2f623c6aef5f46e69674253ae89eaec1498 (diff)
downloadxineliboutput-cefbad82636aa1905797b670d9b6804e432d3f09.tar.gz
xineliboutput-cefbad82636aa1905797b670d9b6804e432d3f09.tar.bz2
Hide warning "narrowing conversion of ‘x1’ from ‘int’ to ‘uint16_t {aka short unsigned int}’ inside { } is ill-formed in C++11"
-rw-r--r--osd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osd.c b/osd.c
index a6a4552d..88b5b358 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c,v 1.52 2014-06-23 12:20:28 phintuka Exp $
+ * $Id: osd.c,v 1.53 2015-02-20 16:01:04 phintuka Exp $
*
*/
@@ -544,7 +544,7 @@ void cXinelibOsd::Flush(void)
int NumColors;
const tColor *Colors = Bitmap->Colors(NumColors);
if (Colors) {
- osd_rect_t DirtyArea = {x1:x1, y1:y1, x2:x2, y2:y2};
+ osd_rect_t DirtyArea = {x1:(uint16_t)x1, y1:(uint16_t)y1, x2:(uint16_t)x2, y2:(uint16_t)y2};
CmdLut8(i,
Left() + Bitmap->X0() + XOffset, Top() + Bitmap->Y0() + YOffset,
Bitmap->Width(), Bitmap->Height(),