[MPlayer-dev-eng] [PATCH] Improve the readability of dynamic labels which scroll

Ingo Brückl ib at wupperonline.de
Sun Jan 30 16:28:13 CET 2011


If nobody objects, I'd like to commit this patch. (BTW, the diff of gui/app.h
shows the disadvantage of pretty-printing. Although only a few lines added,
the diff is lengthy and hard to read.)

Explanation:

If the text of a dynamic label to be displayed is wider than the given
length, it will be scrolled. Currently such a label starts scrolling
immediately after it is placed and - even more unpleasant - the start of the
text is randomly somewhere within the specified space of the label. Both
makes it hard to track and to read.

Now such a dynamic label starts left-aligned and begins scrolling through the
specified space only after a short delay (2.5 seconds). Every time the start
of the text nears the left margin again during the scrolling process it will
stop and everything starts all over again, i.e. scrolling after a short
delay.

Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scroll.patch
Type: application/octet-stream
Size: 3100 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110130/e11a1924/attachment.obj>


More information about the MPlayer-dev-eng mailing list