diff --git a/app/node/generator/text/text.cpp b/app/node/generator/text/text.cpp index 18cb9532d..d0daab074 100644 --- a/app/node/generator/text/text.cpp +++ b/app/node/generator/text/text.cpp @@ -20,6 +20,7 @@ #include "text.h" +#include #include namespace olive { @@ -156,7 +157,9 @@ void TextGenerator::GenerateFrame(FramePtr frame, const GenerateJob& job) const break; } - text_doc.drawContents(&p); + QAbstractTextDocumentLayout::PaintContext ctx; + ctx.palette.setColor(QPalette::Text, Qt::white); + text_doc.documentLayout()->draw(&p, ctx); // Transplant alpha channel to frame Color rgb = job.GetValue(kColorInput).data().value();