Skip to content

Commit

Permalink
Fix gray background on some PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
makuke1234 committed Jan 22, 2022
1 parent 4033888 commit f9b290d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pdfv::error::Errorcode pdfv::Pdfium::pageRender(HDC dc, pdfv::xy<int> pos, pdfv:
auto hbmold{ ::SelectObject(memdc, render) };

RECT r{ .left = 0, .top = 0, .right = size->x, .bottom = size->y };
::FillRect(memdc, &r, reinterpret_cast<HBRUSH>(COLOR_WINDOW));
::FillRect(memdc, &r, static_cast<HBRUSH>(::GetStockObject(WHITE_BRUSH)));

FPDF_RenderPage(memdc, self->m_fpage, 0, 0, size->x, size->y, 0, 0);

Expand Down

0 comments on commit f9b290d

Please sign in to comment.