[mythtv-commits] mythtv/master commit: ac823d75c by John Patrick Poet (jpoet)

MythTV noreply at mythtv.org
Thu Jan 26 02:37:00 UTC 2012


      Author:  John Patrick Poet <jpoet at mythtv.org>
 Change Date:  2012-01-25T18:30:08-08:00
   Push Date:  2012/01/25 18:36:48 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  ac823d75c25f467e993b59c26b99e457bfe51f9c
   Changeset:  https://github.com/MythTV/mythtv/commit/ac823d75c

Log:

MythUIText: Allocate enough "space" for any shadows and outlines when rendering
the text.

This fixes a bug, where shadows and outlines where being clipped by the
"viewport".

Note that the behavior for outlines is a little different than it was
previous to the conversion to QTextLayout.  The old system would move the
text down and to the right, to make room for the outline.  The problem with
that, is that "centered" text was no longer centered.  The new code will
leave the text position alone, and add space all the way around it, for the
outline.  I don't know of any themes which actually use outlines, so I don't
expect this to break anything.

Modified:

   mythtv/libs/libmythui/mythfontproperties.cpp
   mythtv/libs/libmythui/mythpainter.cpp
   mythtv/libs/libmythui/mythuitext.cpp



More information about the mythtv-commits mailing list