/// Not implemented, Fixme void FBOvgGlue::setInvalidatedRegions(const InvalidatedRanges& ranges) { if (!_renderer) { log_error(_("No renderer set!")); return; } _renderer->set_invalidated_regions(ranges); _drawbounds.clear(); for (size_t rno = 0; rno<ranges.size(); rno++) { geometry::Range2d<int> bounds = Intersection( _renderer->world_to_pixel(ranges.getRange(rno)), _validbounds); // it may happen that a particular range is out of the screen, which // will lead to bounds==null. if (bounds.isNull()) continue; _drawbounds.push_back(bounds); } // GNASH_REPORT_FUNCTION; // if (_renderer) { // _renderer->setInvalidatedRegions(ranges); // } }
void AOS4CairoGlue::setInvalidatedRegions(const InvalidatedRanges& ranges) { _cairo_renderer->set_invalidated_regions(ranges); _drawbounds.clear(); for (unsigned int rno=0; rno<ranges.size(); rno++) { // twips changed to pixels here geometry::Range2d<int> bounds = Intersection(_cairo_renderer->world_to_pixel(ranges.getRange(rno)),_validbounds); // it may happen that a particular range is out of the screen, which // will lead to bounds==null. if (bounds.isNull()) continue; _drawbounds.push_back(bounds); } }