--- C:/DOCUME~1/Bogdan/LOCALS~1/Temp/SumatraPDF.cp-revBASE.svn001.tmp.cpp	Thu Dec  3 17:09:47 2009
+++ C:/vc/sumatrapdf/src/SumatraPDF.cpp	Thu Dec  3 17:00:48 2009
@@ -2973,10 +2973,11 @@
         RectI_FromRectD (&recI, &recD);
         if (gGlobalPrefs.m_fwdsearchOffset > 0)
         {
-          recI.x = pageInfo->screenX + gGlobalPrefs.m_fwdsearchOffset;
-		  recI.dx = gGlobalPrefs.m_fwdsearchWidth > 0 ? gGlobalPrefs.m_fwdsearchWidth : 15;
-          recI.y -= 4;
-          recI.dy += 8;          
+            recI.x = pageInfo->screenX + (int)((double)gGlobalPrefs.m_fwdsearchOffset * win->dm->zoomReal() / 100.0);
+            recI.dx = gGlobalPrefs.m_fwdsearchWidth > 0 ? gGlobalPrefs.m_fwdsearchWidth : 15;
+            recI.dx = (int)((double)recI.dx * win->dm->zoomReal() / 100.0);
+            recI.y -= 4;
+            recI.dy += 8;
         }
         PaintTransparentRectangle(win, hdc, &recI, selectionColorBlue, 0);
     }
