[ 7/8] wordpad: Don't waste time getting the number of preview pages.

Dylan Smith dylan.ah.smith at gmail.com
Mon Feb 22 02:18:35 CST 2010


For print preview it will take more time to wait for the whole text to be
wrapped for EM_FORMATRANGE than to wait for just the first page.  Trying to
get the total number of pages will cause the whole test to be wrapped.
Instead all that is needed is to just determine if a page is the last page,
which can be determined by it's page end offset compared to the text length.
---
 programs/wordpad/print.c |   69 +++++++++++++++++----------------------------
 1 files changed, 26 insertions(+), 43 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-wordpad-Don-t-waste-time-getting-the-number-of-pr.diff.txt
Type: text/x-patch
Size: 4858 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100222/c4774aaa/attachment.bin>


More information about the wine-patches mailing list