summaryrefslogtreecommitdiff
path: root/apps/x11_main.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-21 02:41:21 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-21 02:41:21 +0200
commit9a0ea9019264614956e822f25af201815d3160f6 (patch)
tree91ea3d9fba03838306f2120c68ccd68c7c2434e5 /apps/x11_main.c
parent7d99b0fdbdcfb802bee9222bd0e90ed4fde2515d (diff)
downloadmupdf-9a0ea9019264614956e822f25af201815d3160f6.tar.xz
Implement searching for text within the current page.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r--apps/x11_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index a1382a67..9ec80542 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -286,6 +286,8 @@ static void winblit(pdfapp_t *app)
justcopied = 1;
}
+ pdfapp_inverthit(&gapp);
+
ximage_blit(xwin, xgc,
x0, y0,
gapp.image->samples,
@@ -294,6 +296,8 @@ static void winblit(pdfapp_t *app)
gapp.image->h,
gapp.image->w * gapp.image->n);
+ pdfapp_inverthit(&gapp);
+
if (gapp.iscopying || justcopied)
{
pdfapp_invert(&gapp, gapp.selr);