clear allocated regions to transparent
authorFelix Domke <tmbinc@2mac.waldobjekt.org>
Mon, 22 Jun 2009 11:07:35 +0000 (13:07 +0200)
committerFelix Domke <tmbinc@2mac.waldobjekt.org>
Mon, 22 Jun 2009 11:07:35 +0000 (13:07 +0200)
lib/dvb/subtitle.cpp

index b6c5b71..87dadba 100644 (file)
@@ -491,6 +491,7 @@ int eDVBSubtitleParser::subtitle_process_segment(__u8 *segment)
                processed_length += 2;
 
                region->region_buffer = new gPixmap(eSize(region->region_width, region->region_height), 8, 1);
                processed_length += 2;
 
                region->region_buffer = new gPixmap(eSize(region->region_width, region->region_height), 8, 1);
+               memset(region->region_buffer->surface->data, 0, region->region_height * region->region_buffer->surface->stride);
                //eDebug("new region_buffer %p", &(*region->region_buffer));
 
                int region_level_of_compatibility, region_depth;
                //eDebug("new region_buffer %p", &(*region->region_buffer));
 
                int region_level_of_compatibility, region_depth;