mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed the OSD alignment in the SPU decoder
This commit is contained in:
9
dvbspu.c
9
dvbspu.c
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* parts of this file are derived from the OMS program.
|
||||
*
|
||||
* $Id: dvbspu.c 1.6 2004/04/30 13:45:02 kls Exp $
|
||||
* $Id: dvbspu.c 1.7 2004/05/22 14:02:32 kls Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@@ -321,8 +321,13 @@ int cDvbSpuDecoder::ScaleYres(int value)
|
||||
|
||||
void cDvbSpuDecoder::DrawBmp(sDvbSpuRect & size, cBitmap * bmp)
|
||||
{
|
||||
tArea Area = { size.x1, size.y1, size.x2, size.y2, 2 };
|
||||
int x2 = size.x2;
|
||||
while ((x2 - size.x1 + 1) & 0x03)
|
||||
x2++;
|
||||
tArea Area = { size.x1, size.y1, x2, size.y2, 2 };
|
||||
osd->SetAreas(&Area, 1);
|
||||
if (x2 > size.x2)
|
||||
osd->DrawRectangle(size.x2 + 1, size.y1, x2, size.y2, clrTransparent);
|
||||
osd->DrawBitmap(size.x1, size.y1, *bmp);
|
||||
delete bmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user