MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / engineWillRasterize

Method engineWillRasterize

src/core/map_printer.cpp:829–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829bool MapPrinter::engineWillRasterize() const
830{
831#ifdef Q_OS_WIN
832 if (!engineMayRasterize())
833 return false;
834
835 if (!view)
836 return map.hasAlpha();
837
838 const auto visibility = view->effectiveMapVisibility();
839 return visibility.hasAlpha()
840 || (visibility.visible && map.hasAlpha());
841#else
842 Q_ASSERT(!engineMayRasterize());
843 return false;
844#endif
845}
846
847bool MapPrinter::hasAlpha(const Template* temp) const
848{

Callers 1

setOptionsMethod · 0.80

Calls 2

hasAlphaMethod · 0.45

Tested by

no test coverage detected