mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed positioning of scaled video window if borders are configured
This commit is contained in:
parent
f89c95be3b
commit
0cdf675ff7
1
HISTORY
1
HISTORY
@ -58,4 +58,5 @@ Version 0.0.3
|
||||
- added dedicated tokens for posters and banners in <srapercontent> in displaychannel and displayreplay
|
||||
- added Plugin Interface
|
||||
- fixed crash when clearing a message in displaychannel and displayreplay
|
||||
- fixed positioning of scaled video window if borders are configured
|
||||
|
||||
|
@ -192,8 +192,8 @@ bool cTemplateView::GetScalingWindow(cRect &scalingWindow) {
|
||||
if (!parameters)
|
||||
return false;
|
||||
bool doScale = false;
|
||||
int scaleX = parameters->GetNumericParameter(ptScaleTvX);
|
||||
int scaleY = parameters->GetNumericParameter(ptScaleTvY);
|
||||
int scaleX = parameters->GetNumericParameter(ptScaleTvX) + cOsd::OsdLeft();
|
||||
int scaleY = parameters->GetNumericParameter(ptScaleTvY) + cOsd::OsdTop();
|
||||
int scaleWidth = parameters->GetNumericParameter(ptScaleTvWidth);
|
||||
int scaleHeight = parameters->GetNumericParameter(ptScaleTvHeight);
|
||||
if (scaleX > -1 && scaleY > -1 && scaleWidth > -1 && scaleHeight > -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user