Opened 17 years ago
Closed 15 years ago
#2853 closed defect (duplicate)
Live TV EPG does not respect GUI position when not using GUI position for playback
Reported by: | mythtv atsign babysimon co uk | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Using svn r12342.
I have the GUI set to run at a resolution of 1024x576 (for square pixels on 16:9 SDTV), but watch TV at 720x576 (since it's the DVB resolution). The TV overscans horribly, so I have the GUI set to appear at (100, 10) and shrunk to fit the available space. I don't have "use GUI position for playback" checked as the TV overscans differently depending on resolution.
This all works fine except when I go into the EPG from Live TV, the screen resolution changes to 1024x576 as expected, the GUI window resizes to the correct size, but positions itself at (0,0).
I've tried to look at the code to see what's going on. TV::doEditSchedule appears to have some code which should do the right thing (under the comment Resize window to the MythTV GUI size) but it doesn't work (I added debug code, the numbers are right). I notice this is called before the screen resizes though, so I wonder if it fails since the screen is too small for the window at this point.
I've also replicated this on a standard 1280x1024 monitor, so I don't think it's to do with the weird screen sizes I'm using.
Attachments (2)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
OK, now I think I know what I'm doing with this improved patch. It resizes correctly in all cases, including in the main menu, when tv size is the same as gui size, and when calling the finder/guide from each other. I still don't know what, if anything, should be done regarding randr; if someone with properly functioning randr could test it, I would really appreciate it.
Alex
I've noticed the same thing with Livetv, recordings, and videos. Also, the Program Finder has the exact same problem. This is with 1920x1080 video playback, and an underscanned GUI of about 100 pixels less each side + x,y offsetting to center it.
I've created a hack here to try to resize/position the Guide & Finder when they're called from watching a video, but not when called from the main menu. The patch leaves the default (correct) behavior when the 'use gui size for tv playback' option is enabled. One edge case that I can't figure out how to correct for is when the Finder is called from the Guide, and vice versa; not without messing it up when used in the main menu. Also, I have no idea if this works, or breaks things when using randr to change resolutions, because randr seems to mess up things in strange ways already for me. Any suggestions at all are welcome as I've never messed about with this code before today and I'm probably going about it all wrong.
Alex