diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-03-24 10:43:11 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-03-24 10:43:11 -0700 |
commit | 282cee1b5ef000c8b03f53f5cbb243893d4440d1 (patch) | |
tree | 685106a00d32efdf59639babb9404d23f598d2b5 /core/fxge/win32 | |
parent | 2e8798f5b93dac2fab4980b9c4862f13711809e6 (diff) | |
download | pdfium-282cee1b5ef000c8b03f53f5cbb243893d4440d1.tar.xz |
Remove strange integral constants for "true", "false", "%PDF".
Compilers have good inline memcmp nowadays, so we don't
have to resort to old tricks.
Remove FXDWORD_FROM_LSBFIRST and FXDWORD_FROM_MSBFIRST
while we're at it. MSBFIRST was technically wrong due
to promotion to int.
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1834553002 .
Diffstat (limited to 'core/fxge/win32')
-rw-r--r-- | core/fxge/win32/fx_win32_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp index c7afab39a7..9b43fae09e 100644 --- a/core/fxge/win32/fx_win32_device.cpp +++ b/core/fxge/win32/fx_win32_device.cpp @@ -411,7 +411,7 @@ FX_DWORD CFX_Win32FontInfo::GetFontData(void* hFont, uint8_t* buffer, FX_DWORD size) { HFONT hOldFont = (HFONT)::SelectObject(m_hDC, (HFONT)hFont); - table = FXDWORD_FROM_MSBFIRST(table); + table = FXDWORD_GET_MSBFIRST(reinterpret_cast<uint8_t*>(&table)); size = ::GetFontData(m_hDC, table, 0, buffer, size); ::SelectObject(m_hDC, hOldFont); if (size == GDI_ERROR) { |