diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-06-19 16:46:32 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-20 10:34:21 +0100 |
commit | 8ab661d54fe25afc058cdef6f00a130778c7c416 (patch) | |
tree | 19d9b9667ffaa1ef42a5b1560df2c17f9db4730c /apps/win_main.c | |
parent | f18dc92eb8014b335afdb720a8f5bc9c3bd7ceb7 (diff) | |
download | mupdf-8ab661d54fe25afc058cdef6f00a130778c7c416.tar.xz |
Add better mechanism for enumerating annotation rectangles.
Rather than having a dedicated call to enumerate the rectangles for the
annotations on a page, add an interface for enumerating annotations
with accessor functions. Currently the only accessor function is
the one to get the annotation rectangle.
Use this new scheme in place of fz_bound_annots within mudraw.
Also use this scheme to set the caret cursor in the viewer when over
a data field.
Diffstat (limited to 'apps/win_main.c')
-rw-r--r-- | apps/win_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index 555941a8..71cf9203 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -28,7 +28,7 @@ static HDC hdc; static HBRUSH bgbrush; static HBRUSH shbrush; static BITMAPINFO *dibinf; -static HCURSOR arrowcurs, handcurs, waitcurs; +static HCURSOR arrowcurs, handcurs, waitcurs, caretcurs; static LRESULT CALLBACK frameproc(HWND, UINT, WPARAM, LPARAM); static LRESULT CALLBACK viewproc(HWND, UINT, WPARAM, LPARAM); @@ -355,6 +355,7 @@ void winopen() arrowcurs = LoadCursor(NULL, IDC_ARROW); handcurs = LoadCursor(NULL, IDC_HAND); waitcurs = LoadCursor(NULL, IDC_WAIT); + caretcurs = LoadCursor(NULL, IDC_IBEAM); /* And a background color */ bgbrush = CreateSolidBrush(RGB(0x70,0x70,0x70)); @@ -422,6 +423,8 @@ void wincursor(pdfapp_t *app, int curs) SetCursor(handcurs); if (curs == WAIT) SetCursor(waitcurs); + if (curs == CARET) + SetCursor(caretcurs); } void wintitle(pdfapp_t *app, char *title) |