mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
libdvbsub: allow FullHD resolution dimensions
Signed-off-by: J. Krieg <bellum07@googlemail.com>
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ba719402a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-12 (Thu, 12 Oct 2017)
Origin message was:
------------------
- libdvbsub: allow FullHD resolution dimensions
Signed-off-by: J. Krieg <bellum07@googlemail.com>
Signed-off-by: Thilo Graf <dbt@novatux.de>
------------------
This commit was generated by Migit
This commit is contained in:
@@ -163,7 +163,12 @@ void cDvbSubtitleBitmaps::Draw(int &min_x, int &min_y, int &max_x, int &max_y)
|
|||||||
yoff = ystart;
|
yoff = ystart;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
int h2 = (width == 1280) ? 720 : 576;
|
int h2 = 576;
|
||||||
|
switch (width)
|
||||||
|
{
|
||||||
|
case 1280: h2 = 720; break;
|
||||||
|
case 1920: h2 = 1080; break;
|
||||||
|
}
|
||||||
xoff = sub.rects[i]->x * sw / width;
|
xoff = sub.rects[i]->x * sw / width;
|
||||||
yoff = sub.rects[i]->y * sh / h2;
|
yoff = sub.rects[i]->y * sh / h2;
|
||||||
int nw = width * sw / width;
|
int nw = width * sw / width;
|
||||||
|
Reference in New Issue
Block a user