diff options
author | louis <louis.braun@gmx.de> | 2015-03-28 12:35:32 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-28 12:35:32 +0100 |
commit | 3b074e147dcf790521ef1b0507e6b738abba2615 (patch) | |
tree | bc12dc3fc0bd985c66fa71a053101b95b47886b6 | |
parent | 361802844bfe61bd60985505887d5db3d6c1baeb (diff) | |
download | vdr-plugin-skindesigner-3b074e147dcf790521ef1b0507e6b738abba2615.tar.gz vdr-plugin-skindesigner-3b074e147dcf790521ef1b0507e6b738abba2615.tar.bz2 |
fixed bug when creating pixmaps
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | libcore/pixmapcontainer.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -235,4 +235,5 @@ Version 0.3.2 - introduced background="true" attribute in viewelements. These areas will only be drawn once. - fixed bug in creating osd +- fixed bug when creating pixmaps diff --git a/libcore/pixmapcontainer.c b/libcore/pixmapcontainer.c index 66f0e58..90c733a 100644 --- a/libcore/pixmapcontainer.c +++ b/libcore/pixmapcontainer.c @@ -119,6 +119,8 @@ void cPixmapContainer::CreatePixmap(int num, int Layer, const cRect &ViewPort, c if (!osd || (checkRunning && !Running())) return; pixmaps[num] = osd->CreatePixmap(Layer, ViewPort, DrawPort); + if (!pixmaps[num]) + return; pixmaps[num]->Fill(clrTransparent); if (pixContainerInit && fadeTime) { pixmaps[num]->SetAlpha(0); |