diff --git a/HISTORY b/HISTORY index 2bc6546..d07fcbc 100644 --- a/HISTORY +++ b/HISTORY @@ -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);