void PDF::preRenderUpdate( ContentWindowPtr window, const QRect& /*wallArea*/ ) { if( window->isResizing( )) return; PDFContent& content = static_cast<PDFContent&>( *window->getContent( )); const bool pageHasChanged = (pageNumber_ != content.getPage( )); setPage( content.getPage( )); const QSize& windowSize = window->getCoordinates().size().toSize(); if( pageHasChanged || texture_.getSize() != windowSize || textureRect_ != window->getZoomRect( ) ) { updateTexture( windowSize, window->getZoomRect( )); } }