Commit Graph

66441 Commits

Author SHA1 Message Date
Dylan Smith 20dea9a890 wordpad: Don't waste time getting the number of preview pages.
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.
2010-02-22 12:08:20 +01:00
Dylan Smith f235c48cae wordpad: Avoid unnecessary deletion of hdcSized. 2010-02-22 12:08:11 +01:00
Dylan Smith 8f19111325 wordpad: Cache text length. 2010-02-22 12:08:06 +01:00
Dylan Smith 7a9f72863d wordpad: Update bitmaps outside of WM_PAINT.
This avoids having to delete the device context and the bitmap selected
into it just to update the bitmap, since it was setting preview.hdc to
NULL to indicate that these bitmaps needed to be updated. This patch
also helps make WM_PAINT messages get processed faster by moving this out
of the code for handling WM_PAINT.
2010-02-22 12:07:59 +01:00
Dylan Smith a75bf390d7 wordpad: Use pages_shown variables to indicate pages shown.
Previously hdc2 needed to be deleted and set to NULL to indicate that only
one page should be shown. I have avoided this using a new variable for
the preview structure.

The device context were also being deleted without deleting the bitmaps
created for them and selected into them, so this patch also gets these
bitmaps and deletes them with their device context.
2010-02-22 12:07:49 +01:00
Dylan Smith b278101580 wordpad: Get preview page character boundaries with number of pages.
Rather than making seperate calls to EM_FORMATRANGE to get the number of
pages and the character boundaries, it would be easiest to get both
together.  The time to process EM_FORMATRANGE seems like it would take a
lot longer than the time needed to cache the character page boundaries.
2010-02-22 12:07:33 +01:00
Dylan Smith 7451facf2f wordpad: Added missing calls to DeleteDC and ReleaseDC. 2010-02-22 12:07:22 +01:00
Dylan Smith fe9933ae4d richedit: Added some extra tests for EM_FORMATRANGE.
The existing tests were not properly testing the return value for the case
where all the text fits in the page rect, so this patch adds a couple of
simple tests for this case.
2010-02-22 12:03:09 +01:00
Piotr Caban bf0815424b oleaut32: Added MEMBERID_NIL handling to ICreateTypeInfo_LayOut. 2010-02-22 12:02:22 +01:00
Piotr Caban 1765229158 oleaut32: Added TypeInfo validation in ICreateTypeInfo_LayOut. 2010-02-22 12:02:17 +01:00
Piotr Caban 1dda40deb2 oleaut32: Improved ICreateTypeInfo2_fnAddFuncDesc implementation. 2010-02-22 12:02:08 +01:00
Piotr Caban 99992630bd oleaut32: Added partial ICreateTypeInfo2_LayOut implementation. 2010-02-22 12:01:54 +01:00
Roderick Colenbrander d11b99b3aa winex11: Also take into account source offsets when a mask is around. 2010-02-22 12:01:49 +01:00
Roderick Colenbrander c6a290fa94 winex11: When a mask picture is active, the source offsets should be relative to mask_pict instead of src_pict. 2010-02-22 12:01:39 +01:00
Vincent Povirk 0c319b07d7 gdiplus: Add a test for GdipImageRotateFlip. 2010-02-22 12:01:27 +01:00
Jacek Caban 6b46c9e5ad mshtml: Get rid of nsIWineURI interface. 2010-02-22 12:01:07 +01:00
Jacek Caban 0f6f96ea63 mshtml: Get rid of nsIWineURI::[GS]etNSContainer. 2010-02-22 12:00:58 +01:00
Jacek Caban a42bc25d55 mshtml: Get rid of nsIWineURI::[GS]etWindow. 2010-02-22 12:00:53 +01:00
Jacek Caban 043af028b9 mshtml: Get rid of most nsIWineURI methods. 2010-02-22 12:00:46 +01:00
Jacek Caban ba1db4c199 mshtml: Use nsWineURL structure directly in load_nsuri. 2010-02-22 12:00:40 +01:00
Jacek Caban 61121cefcb mshtml: Moved OnStartURIOpen implementation to nsio.c. 2010-02-22 12:00:25 +01:00
Jacek Caban d95a54aa57 mshtml: Store nsWineURI object instead of interface in nsChannel. 2010-02-22 11:59:53 +01:00
Jacek Caban 4ab63f3ad8 mshtml: Rename nsURI to nsWineURI. 2010-02-22 11:59:39 +01:00
André Hentschel 77acdcc016 oleaut32: Fix rounding. 2010-02-22 11:59:32 +01:00
Mikołaj Zalewski bc07b48b38 include: Add a strcmpW-equivalent function usable in tests. 2010-02-22 11:57:23 +01:00
Erich Hoover 2902d8090a kernel32/tests: Add test for 'all processors' flag on Vista and newer. 2010-02-22 11:57:12 +01:00
Erich Hoover fda39b207c ntdll: Allow 'all processors' flag used in Vista and newer. 2010-02-22 11:57:08 +01:00
Kusanagi Kouichi 10789142fc winex11.drv: Check XDND version. 2010-02-22 11:55:42 +01:00
Kusanagi Kouichi f7b18148d4 winex11.drv: Keep the state of XIM and IME consistent. 2010-02-22 11:55:25 +01:00
Eric Pouech 10642e76db ntdll: Fix wrong marking for valgrind on 64bit systems. 2010-02-22 11:50:08 +01:00
Ken Thomases 8c2b290d11 kernel32: Mac: If language is less specific variant of locale, keep locale.
For a Mac user in Australia, for example, the out-of-the-box configuration is
that the preferred language is generic English ("en").  Their formats locale
should be Australia ("en_AU").  Detect that case and don't override
LC_MESSAGES.
2010-02-22 11:41:38 +01:00
Nikolay Sivov d013991d55 msxml3: Simplify IXMLDOMElement_get_tagName(), add null check. 2010-02-22 11:41:05 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard d59227e580 makefiles: Make sure that dependencies are always updated when regenerating makefiles. 2010-02-22 10:40:33 +01:00
Alexandre Julliard bc82a78635 configure: Define AS_VAR_APPEND if necessary for older autoconf versions. 2010-02-20 10:59:04 +01:00
Alexandre Julliard e1437c5231 Release 1.1.39. 2010-02-19 19:23:45 +01:00
Jörg Höhle a956086e18 winmm: dwBytesRecorded controls how much is played, not dwBufferLength. 2010-02-19 15:10:29 +01:00
Nikolay Sivov 7a38ecb0d6 msxml3: Avoid direct vtable members internal usage. 2010-02-19 13:07:11 +01:00
Nikolay Sivov b679a690b4 msxml3: Accept IObjectSafety for query from IXMLDOMDocument, fix its implementation. 2010-02-19 13:07:05 +01:00
Hans Leidekker 1ff9923148 msi: Add summary information stream to the streams table. 2010-02-19 13:06:53 +01:00
Hans Leidekker ddb2091623 msi: Fix a memory leak. 2010-02-19 13:06:46 +01:00
Hans Leidekker 9f68142118 msi: Encode stream name in the callers of db_get_raw_stream. 2010-02-19 13:06:41 +01:00
Hans Leidekker d9e40b8219 msi: Destroy streams cache when applying a transform. 2010-02-19 13:06:36 +01:00
Hans Leidekker f80f1cc2db msi: Accept '\5' and '-' in SQL identifiers. 2010-02-19 13:06:32 +01:00
Hans Leidekker f4bcb105d2 msi: Include run mode in fixmes. 2010-02-19 13:06:27 +01:00
Alexandre Julliard adf9dcd6a7 user32: Fix Z-order handling of windows that have a top-most owner. 2010-02-19 13:05:08 +01:00
Alexandre Julliard 71fa5a36b1 advapi32/tests: Fix the ReadEventLog error checking. 2010-02-19 11:36:12 +01:00
Paul Vriens 2ef6101768 cmd/tests: Compare strings case-insensitive. 2010-02-19 11:30:03 +01:00
Trey Hunner 41c0db3ce9 cmd: Add test for 'if' case sensitivity. 2010-02-19 11:30:00 +01:00
Vincent Povirk 38c6628911 comdlg32/tests: Font sizes are influenced by the display dpi. 2010-02-19 11:29:14 +01:00