diff options
| -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); |
