summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2016-03-02 13:48:31 +0100
committerThomas Reufer <thomas@reufer.ch>2016-03-02 15:28:50 +0100
commitdd5379d79ff0b7fc1151a4e2661eea755323c626 (patch)
tree6450bcea390b8448e102311c61fccc84394d9dce
parent07bf1738c6409c566cabb913f910dd248213654a (diff)
downloadvdr-plugin-rpihddevice-dd5379d79ff0b7fc1151a4e2661eea755323c626.tar.gz
vdr-plugin-rpihddevice-dd5379d79ff0b7fc1151a4e2661eea755323c626.tar.bz2
fixed drawing of cached images with high level OSD
-rw-r--r--HISTORY1
-rw-r--r--ovgosd.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 9959912..2d5137c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5,6 +5,7 @@ VDR Plugin 'rpihddevice' Revision History
- set device name
- add option for dual display usage, see README
- fixed:
+ - fixed drawing of cached images with high level OSD
- only cache images in GPU when high level OSD is active
- added proper GPL header to every source file (suggested by Tobias Grimm)
- wait until dispmanx element is removed after OSD reset
diff --git a/ovgosd.c b/ovgosd.c
index a1f8a6f..685dadb 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -1552,15 +1552,14 @@ public:
if (!m_target->MakeCurrent(egl))
return false;
- VGint height = vgGetParameteri(*m_image, VG_IMAGE_HEIGHT);
-
vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE);
vgSeti(VG_IMAGE_MODE, VG_DRAW_IMAGE_NORMAL);
vgSeti(VG_IMAGE_QUALITY, VG_IMAGE_QUALITY_BETTER);
vgSeti(VG_BLEND_MODE, VG_BLEND_SRC);
vgLoadIdentity();
- vgTranslate(m_x, m_target->height - height - m_y);
+ vgScale(1.0f, -1.0f);
+ vgTranslate(m_x, m_y - m_target->height);
vgDrawImage(*m_image);
return true;