mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 13:01:48 +00:00
Fixed position of video window
This commit is contained in:
@@ -41,8 +41,8 @@ void cStatusHeader::ScaleVideo(void) {
|
||||
if (tvguideConfig.scaleVideo) {
|
||||
int height = tvguideConfig.statusHeaderHeight;
|
||||
int width = height * 16 / 9;
|
||||
int x = tvguideConfig.osdWidth - width;
|
||||
int y = 0;
|
||||
int x = osdManager.Left() + tvguideConfig.osdWidth - width;
|
||||
int y = osdManager.Top();
|
||||
cRect availableRect(x, y, width, height);
|
||||
cRect vidWin = cDevice::PrimaryDevice()->CanScaleVideo(availableRect);
|
||||
cDevice::PrimaryDevice()->ScaleVideo(vidWin);
|
||||
|
Reference in New Issue
Block a user