diff options
author | scop <scop> | 2005-04-17 11:29:21 +0000 |
---|---|---|
committer | scop <scop> | 2005-04-17 11:29:21 +0000 |
commit | 9216c55e163f619a33770119339ae0651cd1e417 (patch) | |
tree | 64a7869a8001785d0bcdcf5523b088ac366d6602 /dxr3osd_subpicture.c | |
parent | b4cecb13ef4fa7389a96f721e57da2cf68cb65e4 (diff) | |
download | vdr-plugin-dxr3-9216c55e163f619a33770119339ae0651cd1e417.tar.gz vdr-plugin-dxr3-9216c55e163f619a33770119339ae0651cd1e417.tar.bz2 |
OSD color management rework from Luca Olivetti.
Diffstat (limited to 'dxr3osd_subpicture.c')
-rw-r--r-- | dxr3osd_subpicture.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/dxr3osd_subpicture.c b/dxr3osd_subpicture.c index bf5a776..ddd0e28 100644 --- a/dxr3osd_subpicture.c +++ b/dxr3osd_subpicture.c @@ -39,6 +39,7 @@ cDxr3SubpictureOsd::~cDxr3SubpictureOsd() Spu->Cmd(OSD_Close); } } + Spu->StopSpu(); #if VDRVERSNUM >= 10318 delete last; #endif @@ -170,22 +171,13 @@ void cDxr3SubpictureOsd::Flush() Spu->Cmd(OSD_SetPalette, 0, NumColors - 1, 0, 0, 0, Colors); } // commit modified data: - //Spu->Cmd(OSD_SetBlock, Bitmap->Width(), x1, y1, x2, y2, Bitmap->Data(x1, y1)); Spu->Cmd(OSD_SetBlock, Bitmap->Width(), x1, y1, x2, y2, Bitmap->Data(x1, y1)); } Bitmap->Clean(); } - if (!shown) - { - // Showing the windows in a separate loop to avoid seeing them come up one after another - for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) - { - Spu->Cmd(OSD_SetWindow, 0, i + 1); - Spu->Cmd(OSD_MoveWindow, 0, Left() + Bitmap->X0(), Top() + Bitmap->Y0()); - } - shown = true; - } + Spu->Flush(); + shown = true; } #endif /*VDRVERSNUM*/ |