diff options
author | Lei Zhang <thestig@chromium.org> | 2014-07-08 16:42:00 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2014-07-08 16:42:00 -0700 |
commit | 95c018e2d15ecc3a5bd2a9aab18638316a6d3d46 (patch) | |
tree | 747432f08c77119a2600038a4368f2d3dcdf22c9 /samples | |
parent | 3522876d5291922ddc62bf1b70d02743b0850673 (diff) | |
download | pdfium-95c018e2d15ecc3a5bd2a9aab18638316a6d3d46.tar.xz |
Fixes for re-enabling more MSVC level 4 warnings: pdfium/ edition
This contains fixes for the following sorts of issues:
* Nonstandard extension: unnamed struct/union
This also changes the signature of FPDF_FillRect() to enable the cleanest
possible changes in https://codereview.chromium.org/372273005 .
BUG=81439
TEST=none
Original patch by Peter Kasting <pkasting@chromium.org>
Original code review: https://codereview.chromium.org/376003003/
R=pkasting@chromium.org
Review URL: https://codereview.chromium.org/372383004
Diffstat (limited to 'samples')
-rw-r--r-- | samples/pdfium_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index c504bf4823..f8e567349b 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -230,7 +230,7 @@ void RenderPdf(const char* name, const char* pBuf, size_t len, int width = static_cast<int>(FPDF_GetPageWidth(page)); int height = static_cast<int>(FPDF_GetPageHeight(page)); FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, 0); - FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 255, 255, 255, 255); + FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 0xFFFFFFFF); FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0); FPDF_FFLDraw(form, bitmap, page, 0, 0, width, height, 0, 0); |