--- C:/DOCUME~1/Bogdan/LOCALS~1/Temp/SumatraPDF.-revBASE.svn003.tmp.cpp Fri Dec 4 22:39:07 2009 +++ C:/vc/sumatrapdf/src/SumatraPDF.cpp Fri Dec 4 22:39:17 2009 @@ -2962,24 +2962,25 @@ (GetGValue(gGlobalPrefs.m_fwdsearchColor) << 8) | GetBValue(gGlobalPrefs.m_fwdsearchColor); + RectD recD; + RectI recI; + // Draw the rectangles highlighting the forward search results for (UINT i = 0; i < win->fwdsearchmarkRects.size(); i++) { - RectD recD; - RectI recI; - - RectD_FromRectI(&recD, &win->fwdsearchmarkRects[i]); - win->dm->rectCvtUserToScreen(win->fwdsearchmarkPage, &recD); + RectD_FromRectI (&recD, &win->fwdsearchmarkRects[i]); + win->dm->rectCvtUserToScreen (win->fwdsearchmarkPage, &recD); + RectI_FromRectD (&recI, &recD); if (gGlobalPrefs.m_fwdsearchOffset > 0) { recI.x = pageInfo->screenX + (double)gGlobalPrefs.m_fwdsearchOffset * win->dm->zoomReal() / 100.0; recI.dx = (gGlobalPrefs.m_fwdsearchWidth > 0 ? (double)gGlobalPrefs.m_fwdsearchWidth : 15.0) * win->dm->zoomReal() / 100.0; recI.y -= 4; - recI.dy += 8; + recI.dy += 8; } - RectI_FromRectD(&recI, &recD); PaintTransparentRectangle(win, hdc, &recI, selectionColorBlue, 0); } + } #define BORDER_SIZE 1