diff options
author | Thomas Reufer <thomas@reufer.ch> | 2016-05-10 07:14:22 +0200 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2016-05-10 07:14:22 +0200 |
commit | db7c53d003e8cb10fbc0b0af2f05a829a718780c (patch) | |
tree | e01f58564ebec128d1d5a101880cb263bb1b1c2f | |
parent | 1fe1efdbfc19108bea66213d8f08ef1063cedf14 (diff) | |
download | vdr-plugin-rpihddevice-db7c53d003e8cb10fbc0b0af2f05a829a718780c.tar.gz vdr-plugin-rpihddevice-db7c53d003e8cb10fbc0b0af2f05a829a718780c.tar.bz2 |
fixed vertical text position
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | ovgosd.c | 14 |
2 files changed, 8 insertions, 8 deletions
@@ -5,6 +5,8 @@ VDR Plugin 'rpihddevice' Revision History - updated Hungarian translations (thanks to Füley István) - make use of advanced deinterlacer configurable - add debug option to log number of executed OpenVG commands and flushes +- fixed: + - fixed vertical text position 2016-04-23: Version 1.0.3 ------------------------- @@ -1242,12 +1242,9 @@ public: vgSeti(VG_BLEND_MODE, VG_BLEND_SRC); vgSeti(VG_MATRIX_MODE, VG_MATRIX_GLYPH_USER_TO_SURFACE); - // some magic offset to conform with VDR's text rendering - offsetY -= 0.06f * m_fontSize; - vgLoadIdentity(); vgTranslate(m_x + offsetX, - m_target->height - m_y - m_fontSize - offsetY + 1); + m_target->height - m_y - height + descender - offsetY + 1); vgScale(m_fontSize, m_fontSize); VGfloat origin[2] = { 0.0f, 0.0f }; @@ -1255,10 +1252,11 @@ public: cOvgPaintBox::SetScissoring( m_w ? m_x : m_x + floor(offsetX), - m_h ? m_target->height - m_y - m_h : m_target->height - m_y - - m_fontSize - floor(descender) + 1, - m_w ? m_w : floor(width) + 1, - m_h ? m_h : m_fontSize + floor(descender) - 1); + m_h ? m_target->height - m_y - m_h : + m_target->height - m_y - floor(height), + m_w ? m_w : floor(width), + m_h ? m_h : floor(height)); + if (m_colorBg != clrTransparent) { |