From f1e7c461dfabbff6b65a072f24f6711b34159361 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 23 Jul 2015 13:36:00 -0700 Subject: Revert "FX_BOOL considered harmful, part 2." This reverts commit 320b2313d19869333ed453af546e61a9fc2b81c9. Reason for revert: build failure. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1255693002 . --- fpdfsdk/src/pdfwindow/PWL_Caret.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp') diff --git a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp index deccf06449..84a8b3d186 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp @@ -16,7 +16,7 @@ ////////////////////////////////////////////////////////////////////// CPWL_Caret::CPWL_Caret() : - m_bFlash(false), + m_bFlash(FALSE), m_ptHead(0,0), m_ptFoot(0,0), m_fWidth(0.4f), @@ -135,7 +135,7 @@ CPDF_Rect CPWL_Caret::GetCaretRect() const m_ptHead.y); } -void CPWL_Caret::SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot) +void CPWL_Caret::SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot) { if (bVisible) { @@ -147,9 +147,9 @@ void CPWL_Caret::SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_P m_ptHead = ptHead; m_ptFoot = ptFoot; - m_bFlash = true; - //Move(GetCaretRect(),false,true); - Move(m_rcInvalid, false, true); + m_bFlash = TRUE; + //Move(GetCaretRect(),FALSE,TRUE); + Move(m_rcInvalid, FALSE, TRUE); } } else @@ -160,11 +160,11 @@ void CPWL_Caret::SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_P EndTimer(); BeginTimer(PWL_CARET_FLASHINTERVAL); - CPWL_Wnd::SetVisible(true); - m_bFlash = true; + CPWL_Wnd::SetVisible(TRUE); + m_bFlash = TRUE; - //Move(GetCaretRect(),false,true); - Move(m_rcInvalid, false, true); + //Move(GetCaretRect(),FALSE,TRUE); + Move(m_rcInvalid, FALSE, TRUE); } } else @@ -172,11 +172,11 @@ void CPWL_Caret::SetCaret(bool bVisible, const CPDF_Point & ptHead, const CPDF_P m_ptHead = CPDF_Point(0, 0); m_ptFoot = CPDF_Point(0, 0); - m_bFlash = false; + m_bFlash = FALSE; if (IsVisible()) { EndTimer(); - CPWL_Wnd::SetVisible(false); + CPWL_Wnd::SetVisible(FALSE); } } } -- cgit v1.2.3