diff options
author | Thomas Reufer <thomas@reufer.ch> | 2016-03-02 13:48:31 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2016-03-02 15:28:50 +0100 |
commit | dd5379d79ff0b7fc1151a4e2661eea755323c626 (patch) | |
tree | 6450bcea390b8448e102311c61fccc84394d9dce | |
parent | 07bf1738c6409c566cabb913f910dd248213654a (diff) | |
download | vdr-plugin-rpihddevice-dd5379d79ff0b7fc1151a4e2661eea755323c626.tar.gz vdr-plugin-rpihddevice-dd5379d79ff0b7fc1151a4e2661eea755323c626.tar.bz2 |
fixed drawing of cached images with high level OSD
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | ovgosd.c | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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; |