diff --git a/src/lib.cpp b/src/lib.cpp index c3285e6..8b748c2 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -257,7 +257,7 @@ pdfv::error::Errorcode pdfv::Pdfium::pageRender(HDC dc, pdfv::xy pos, pdfv: auto hbmold{ ::SelectObject(memdc, render) }; RECT r{ .left = 0, .top = 0, .right = size->x, .bottom = size->y }; - ::FillRect(memdc, &r, reinterpret_cast(COLOR_WINDOW)); + ::FillRect(memdc, &r, static_cast(::GetStockObject(WHITE_BRUSH))); FPDF_RenderPage(memdc, self->m_fpage, 0, 0, size->x, size->y, 0, 0);