mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
One more Fix for skinopacity
This commit is contained in:
parent
25f70cd820
commit
ff16beb515
@ -61,7 +61,7 @@ extern void ToggleLUT();
|
|||||||
/// vdr-plugin version number.
|
/// vdr-plugin version number.
|
||||||
/// Makefile extracts the version number for generating the file name
|
/// Makefile extracts the version number for generating the file name
|
||||||
/// for the distribution archive.
|
/// for the distribution archive.
|
||||||
static const char *const VERSION = "3.5.5"
|
static const char *const VERSION = "3.5.6"
|
||||||
#ifdef GIT_REV
|
#ifdef GIT_REV
|
||||||
"-GIT" GIT_REV
|
"-GIT" GIT_REV
|
||||||
#endif
|
#endif
|
||||||
@ -641,16 +641,40 @@ void cSoftOsd::Flush(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_OPENGLOSD
|
#ifdef USE_OPENGLOSD
|
||||||
|
|
||||||
|
//Dummy Pixmap for skins
|
||||||
|
class cDummyPixmap : public cPixmap {
|
||||||
|
public:
|
||||||
|
cDummyPixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null) : cPixmap(Layer, ViewPort, DrawPort) {}
|
||||||
|
virtual ~cDummyPixmap(void) {}
|
||||||
|
virtual void Clear(void) {}
|
||||||
|
virtual void Fill(tColor Color) { (void)Color; }
|
||||||
|
virtual void DrawImage(const cPoint &Point, const cImage &Image) { (void)Point; (void)Image; }
|
||||||
|
virtual void DrawImage(const cPoint &Point, int ImageHandle) { (void)Point; (void)ImageHandle; }
|
||||||
|
virtual void DrawPixel(const cPoint &Point, tColor Color) { (void)Point; (void)Color; }
|
||||||
|
virtual void DrawBitmap(const cPoint &Point, const cBitmap &Bitmap, tColor ColorFg = 0, tColor ColorBg = 0, bool Overlay = false) {
|
||||||
|
(void) Point; (void)Bitmap; (void)ColorFg; (void)ColorBg; (void)Overlay; }
|
||||||
|
virtual void DrawText(const cPoint &Point, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width = 0, int Height = 0, int Alignment = taDefault) {
|
||||||
|
(void)Point; (void)s; (void)ColorFg; (void) ColorBg; (void) Font; (void)Width; (void)Height; (void)Alignment; }
|
||||||
|
virtual void DrawRectangle(const cRect &Rect, tColor Color) { (void)Rect; (void)Color; }
|
||||||
|
virtual void DrawEllipse(const cRect &Rect, tColor Color, int Quadrants = 0) { (void)Rect; (void)Color; (void)Quadrants; }
|
||||||
|
virtual void DrawSlope(const cRect &Rect, tColor Color, int Type) { (void)Rect; (void)Color; (void)Type; }
|
||||||
|
virtual void Render(const cPixmap *Pixmap, const cRect &Source, const cPoint &Dest) { (void)Pixmap; (void)Source; (void)Dest; }
|
||||||
|
virtual void Copy(const cPixmap *Pixmap, const cRect &Source, const cPoint &Dest) { (void)Pixmap; (void)Source; (void)Dest; }
|
||||||
|
virtual void Scroll(const cPoint &Dest, const cRect &Source = cRect::Null) { (void)Dest; (void)Source; }
|
||||||
|
virtual void Pan(const cPoint &Dest, const cRect &Source = cRect::Null) { (void)Dest; (void)Source; }
|
||||||
|
};
|
||||||
|
|
||||||
// Dummy OSD for OpenGL OSD if no X Server is available
|
// Dummy OSD for OpenGL OSD if no X Server is available
|
||||||
class cDummyOsd : public cOsd {
|
class cDummyOsd : public cOsd {
|
||||||
|
private:
|
||||||
|
cDummyPixmap *p;
|
||||||
public:
|
public:
|
||||||
cDummyOsd(int Left, int Top, uint Level) : cOsd(Left, Top, Level) {}
|
cDummyOsd(int Left, int Top, uint Level) : cOsd(Left, Top, Level) {}
|
||||||
virtual ~cDummyOsd() {}
|
virtual ~cDummyOsd() {}
|
||||||
virtual cPixmap *CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null) {
|
virtual cPixmap *CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null) {
|
||||||
(void)Layer;
|
p = new cDummyPixmap(Layer, ViewPort, DrawPort);
|
||||||
(void)ViewPort;
|
return p;
|
||||||
(void)DrawPort;
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
virtual void DestroyPixmap(cPixmap *Pixmap) { (void)Pixmap; }
|
virtual void DestroyPixmap(cPixmap *Pixmap) { (void)Pixmap; }
|
||||||
virtual void DrawImage(const cPoint &Point, const cImage &Image) {
|
virtual void DrawImage(const cPoint &Point, const cImage &Image) {
|
||||||
|
Loading…
Reference in New Issue
Block a user