fixed bug when creating pixmaps

This commit is contained in:
louis 2015-03-28 12:35:32 +01:00
parent 361802844b
commit 3b074e147d
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);