projects
/
wine
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc473e0
)
wordpad: Don't render the text when getting the number of pages.
author
Dylan Smith
<dylan.ah.smith@gmail.com>
Wed, 27 Jan 2010 07:25:21 +0000
(
02:25
-0500)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 27 Jan 2010 17:46:06 +0000
(18:46 +0100)
EM_FORMATRANGE will render the text if wParam is non-zero, and there
is no reason to actually render the text when just getting the number
of pages.
programs/wordpad/print.c
patch
|
blob
|
blame
|
history
diff --git
a/programs/wordpad/print.c
b/programs/wordpad/print.c
index
b920a4f
..
a6bdf40
100644
(file)
--- a/
programs/wordpad/print.c
+++ b/
programs/wordpad/print.c
@@
-245,7
+245,7
@@
static int get_num_pages(HWND hEditorWnd, FORMATRANGE fr)
{
int bottom = fr.rc.bottom;
page++;
- fr.chrg.cpMin = SendMessageW(hEditorWnd, EM_FORMATRANGE,
TRU
E,
+ fr.chrg.cpMin = SendMessageW(hEditorWnd, EM_FORMATRANGE,
FALS
E,
(LPARAM)&fr);
fr.rc.bottom = bottom;
}
@@
-263,7
+263,7
@@
static void char_from_pagenum(HWND hEditorWnd, FORMATRANGE *fr, int page)
for(i = 1; i < page; i++)
{
int bottom = fr->rc.bottom;
- fr->chrg.cpMin = SendMessageW(hEditorWnd, EM_FORMATRANGE,
TRU
E, (LPARAM)fr);
+ fr->chrg.cpMin = SendMessageW(hEditorWnd, EM_FORMATRANGE,
FALS
E, (LPARAM)fr);
fr->rc.bottom = bottom;
}
}