[mythtv-commits] Ticket #10645: Screen setup wizard bottom right arrow not visible
MythTV
noreply at mythtv.org
Sun Apr 22 21:09:45 UTC 2012
#10645: Screen setup wizard bottom right arrow not visible
-----------------------------------+--------------------------------------
Reporter: Yves Cayer <ycayer@…> | Type: Bug Report - General
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: 0.25-fixes | Severity: medium
Keywords: | Ticket locked: 0
-----------------------------------+--------------------------------------
When entering the screen setup wizard for the first time, the bottom right
arrow is not visible. It is off screen to the right. While it can be moved
up and left and positioned to the screen dimensions, this results in the
wrong screen size.
If the screen setup wizard is entered a second time, the bottom right
arrow is visible.
The reason for this behaviour is because the image for the arrows get
loaded in a background thread and are not ready when the dimensions are
extracted, resulting is 0,0 size. This effectively positions the bottom
right arrow with its top left corned as the origin instead of its bottom
right, resulting in an error in x and y equivalent to the size of the
arrow image.
I'm attaching a patch with what I think is a good workaround. When the
bottom right arrow is selected, it checks for a zero size arrow and re-
initializes it. On my systems, the arrow was always positioned correctly
with the patch applied.
Perhaps there's a way to have the images load in the current thread, but I
haven't found anything yet.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10645>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list