diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-23 13:58:16 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-23 13:58:16 +0000 |
| commit | 619eb71144de89c98d651bdbc55e424a20bca4a5 (patch) | |
| tree | ece6df75980b032e240340f1e9386bb33bdb7a59 /lib | |
| parent | 0afd2995239e9c831b4e73ba27ec97302337db01 (diff) | |
| download | enigma2-619eb71144de89c98d651bdbc55e424a20bca4a5.tar.gz enigma2-619eb71144de89c98d651bdbc55e424a20bca4a5.zip | |
fix RT_VALIGN_CENTER in painter.setText
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gdi/grc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gdi/grc.cpp b/lib/gdi/grc.cpp index b09171f6..e00bd540 100644 --- a/lib/gdi/grc.cpp +++ b/lib/gdi/grc.cpp @@ -497,7 +497,7 @@ void gDC::exec(gOpcode *o) if (o->parm.renderText->flags & gPainter::RT_VALIGN_CENTER) { eRect bbox = para->getBoundBox(); - int vcentered_top = (o->parm.renderText->area.height() - bbox.height()) / 2; + int vcentered_top = o->parm.renderText->area.top() + ((o->parm.renderText->area.height() - bbox.height()) / 2); int correction = vcentered_top - bbox.top(); offset += ePoint(0, correction); } |
