mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Try Fix for tvguide
This commit is contained in:
parent
189d8cfa53
commit
6c0f80979f
@ -2002,10 +2002,11 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr<cOglThread> oglT
|
|||||||
|
|
||||||
dsyslog("[softhddev]cOglOsd osdLeft %d osdTop %d screenWidth %d screenHeight %d", Left, Top, osdWidth, osdHeight);
|
dsyslog("[softhddev]cOglOsd osdLeft %d osdTop %d screenWidth %d screenHeight %d", Left, Top, osdWidth, osdHeight);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (posd)
|
if (posd)
|
||||||
free(posd);
|
free(posd);
|
||||||
posd = (unsigned char *)calloc( osdWidth * osdHeight * 4, 1 );
|
posd = (unsigned char *)calloc( osdWidth * osdHeight * 4, 1 );
|
||||||
|
#endif
|
||||||
// create output framebuffer
|
// create output framebuffer
|
||||||
|
|
||||||
if (!oFb) {
|
if (!oFb) {
|
||||||
@ -2019,11 +2020,7 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr<cOglThread> oglT
|
|||||||
cOglOsd::~cOglOsd() {
|
cOglOsd::~cOglOsd() {
|
||||||
OsdClose();
|
OsdClose();
|
||||||
SetActive(false);
|
SetActive(false);
|
||||||
#if 0
|
|
||||||
if (posd)
|
|
||||||
free(posd);
|
|
||||||
posd = 0;
|
|
||||||
#endif
|
|
||||||
oglThread->DoCmd(new cOglCmdDeleteFb(bFb));
|
oglThread->DoCmd(new cOglCmdDeleteFb(bFb));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
video.c
12
video.c
@ -392,7 +392,7 @@ static char VideoSurfaceModesChanged; ///< flag surface modes changed
|
|||||||
static const char VideoTransparentOsd = 1;
|
static const char VideoTransparentOsd = 1;
|
||||||
|
|
||||||
static uint32_t VideoBackground; ///< video background color
|
static uint32_t VideoBackground; ///< video background color
|
||||||
static char VideoStudioLevels; ///< flag use studio levels
|
char VideoStudioLevels; ///< flag use studio levels
|
||||||
|
|
||||||
/// Default deinterlace mode.
|
/// Default deinterlace mode.
|
||||||
static VideoDeinterlaceModes VideoDeinterlace[VideoResolutionMax];
|
static VideoDeinterlaceModes VideoDeinterlace[VideoResolutionMax];
|
||||||
@ -3841,7 +3841,7 @@ void make_osd_overlay(int x, int y, int width, int height)
|
|||||||
{
|
{
|
||||||
const struct pl_fmt *fmt;
|
const struct pl_fmt *fmt;
|
||||||
struct pl_overlay *pl;
|
struct pl_overlay *pl;
|
||||||
const float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
|
|
||||||
|
|
||||||
int offset = VideoWindowHeight - (VideoWindowHeight - height - y) - (VideoWindowHeight - y);
|
int offset = VideoWindowHeight - (VideoWindowHeight - height - y) - (VideoWindowHeight - y);
|
||||||
|
|
||||||
@ -4994,6 +4994,10 @@ void VideoOsdInit(void)
|
|||||||
OsdWidth = VideoWindowWidth;
|
OsdWidth = VideoWindowWidth;
|
||||||
OsdHeight = VideoWindowHeight;
|
OsdHeight = VideoWindowHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (posd)
|
||||||
|
free(posd);
|
||||||
|
posd = (unsigned char *)calloc( OsdWidth * OsdHeight * 4, 1 );
|
||||||
VideoOsdClear();
|
VideoOsdClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6627,6 +6631,10 @@ void VideoSetCutLeftRight(int pixels[VideoResolutionMax])
|
|||||||
void VideoSetStudioLevels(int onoff)
|
void VideoSetStudioLevels(int onoff)
|
||||||
{
|
{
|
||||||
VideoStudioLevels = onoff;
|
VideoStudioLevels = onoff;
|
||||||
|
#ifdef GAMMA
|
||||||
|
Set_Gamma(2.4,6500);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user