Commit Graph

533 Commits

Author SHA1 Message Date
Alexandre Julliard 328ca0e00c gdi32/tests: Fix an uninitialized pointer check for Win64. 2009-01-09 18:08:50 +01:00
Francois Gouget 581e390115 winapi_test: The tests don't support WIN64 yet so disable them there. 2009-01-08 12:47:22 +01:00
Francois Gouget 411f5d22c0 winapi_test: The real tests are done at compile time so use C_ASSERT() instead of ok(). Do only one test per line so one can know exactly what went wrong. 2009-01-08 12:46:39 +01:00
Francois Gouget 9f62c9b7a8 winapi_test: Fix TEST_FIELD() so it correctly tests the field size. 2009-01-08 12:44:49 +01:00
Francois Gouget 43c18c1321 winapi_test: FIELD_ALIGNMENT() is redundant so remove it. 2009-01-08 12:43:15 +01:00
Francois Gouget 2e668d2572 winapi_test: Updated so the generated tests work. 2009-01-08 12:42:12 +01:00
Francois Gouget ca82e0f5b3 gdi32: Remove some dead code. 2009-01-07 14:40:25 +01:00
Alexandre Julliard 428de06982 gdi32/tests: Fix a pointer casting warning on 64-bit. 2009-01-03 20:13:29 +01:00
Byeongsik Jeon f2e1b254ce gdi32: Restore the trimmed bitmap image by FT_Render_Glyph(). 2008-12-29 12:41:45 +01:00
Byeongsik Jeon 45a081f142 gdi32: Don't truncate the added pixels with FT_LCD_FILTER_DEFAULT. 2008-12-24 10:58:59 +01:00
Maarten Lankhorst 131d0a79a1 gdi32/winex11.drv: Change all gdi/opengl operations to use CDECL calling convention. 2008-12-23 13:02:33 +01:00
Alexandre Julliard 30137f168c gdi32: Fix the build without Freetype LCD support. 2008-12-23 12:34:01 +01:00
ByeongSik Jeon 028617b90b gdi32, winex11: Add support for subpixel font rendering. 2008-12-22 16:33:03 +01:00
Maarten Lankhorst a411f25d85 gdi32/user32: Make __wine_make_gdi_object_system CDECL. 2008-12-17 15:02:26 +01:00
Lei Zhang 6d790d6ed0 gdi32: Prevent integer overflow in CreateBitmapIndirect. 2008-12-17 13:52:41 +01:00
Paul Vriens 098f2f231d gdi32/tests: Fix a few failures on Win9x. 2008-12-15 12:36:08 +01:00
Francois Gouget 52b4c7f26d gdi32: Export three implemented 16bit Engine*() functions. 2008-12-15 12:25:36 +01:00
Francois Gouget cc6e4e955e gdi32: Make [GS]etDCState() static. 2008-12-15 12:25:34 +01:00
Francois Gouget f5657080c7 gdi32/tests: Make test_GdiAlphaBlend() static. 2008-12-12 11:42:07 +01:00
Paul Vriens ed4444dae5 gdi32/tests: Fix some test failures on Win9x. 2008-12-12 11:38:31 +01:00
ByeongSik Jeon d1ca64b3f5 gdi32: Unify Chinese and Japanese default font name. 2008-12-11 12:20:27 +01:00
Paul Vriens 52a914db83 gdi32/tests: Remove the todo_wine logic where appropriate. 2008-12-11 11:50:15 +01:00
Paul Vriens 024a6bce5f gdi32/tests: Fix a failure on NT4. 2008-12-10 10:49:50 +01:00
Paul Vriens fee339f7ff gdi32/tests: Fix a few test failures on Win9x and WinMe. 2008-12-05 12:36:53 +01:00
Paul Vriens 9960ab2418 gdi32/tests: Fix a few test failures on Win9x and WinMe. 2008-12-04 15:46:15 +01:00
Aric Stewart c0c852247f gdi32: Use the substitute name, if it exists, when looking for font system links.
Allows double indirection MS ShellDlg -> MS UI Gothic linked to system
gothic to work as expected.
2008-12-03 11:41:45 +01:00
Dmitry Timoshkov 1669b337e4 gdi32: Make PATH_AddEntry static. 2008-12-03 09:57:47 +01:00
Michael Stefaniuc ec1c9492b0 gdi32: Remove some superfluous casts. 2008-11-25 11:56:02 +01:00
Ricardo Filipe ca3d0d67a8 gdi32: Fix dead store (llvm/clang). 2008-11-18 13:05:56 +01:00
Paul Vriens decb70d95c gdi32/tests: Fix a few failures on Win9x and WinMe. 2008-11-13 15:30:52 +01:00
Paul Vriens 3f4333d70c gdi32/tests: Don't crash on NT4. 2008-11-06 15:01:12 +01:00
Dmitry Timoshkov 25a1803720 gdi32: Fix a broken test. 2008-11-06 11:10:10 +01:00
Sergey Khodych 11d17fafc4 winex11: BitBlt returns TRUE when drawing outside of the clipping or visible region. 2008-11-06 11:09:16 +01:00
Dmitry Timoshkov 376adf9438 gdi32: Try to avoid not necessary glyph transformations. 2008-11-03 11:50:15 +01:00
Michael Stefaniuc 933ec96aa7 gdi32: Don't cast NULL. 2008-10-31 13:27:24 +01:00
Kirill K. Smirnov 003392b545 gdi32: Fix copy/paste typo. 2008-10-31 12:57:17 +01:00
Bobby Bingham a900f5e065 gdi32: Add support for the GGO_UNHINTED flag in GetGlyphOutline. 2008-10-28 15:46:29 +01:00
Dmitry Timoshkov 61900098b1 gdi32: Move DC mapping APIs to the 'dc' debug channel. 2008-10-28 12:14:01 +01:00
Michael Stefaniuc 8ff77fce45 gdi32/tests: HGDIOBJ is interchangeable with other handle types; no casts are needed. 2008-10-27 11:30:01 +01:00
Dmitry Timoshkov 2d15db6136 gdi32: Search the child font list first. 2008-10-27 11:28:50 +01:00
Michael Stefaniuc 2d94915f27 gdi32: Don't cast the void pointer returned by GDI_GetObjPtr(). 2008-10-24 14:24:59 +02:00
Dmitry Timoshkov ccba8578f5 gdi32: Add EMR_GDICOMMENT to the list of records producing output.
This completely fixes the print previews generated by MS Access in a Win9x
mode. Access has a custom handler for an EMR_GDICOMMENT record, and GDI APIs
it calls from it don't work properly due to wrong DC mapping.
2008-10-23 15:15:41 +02:00
Dmitry Timoshkov d1fe894a7d gdi32: Make EnumEnhMetaFile update the DC state before calling the callback.
This makes applications with custom callbacks work properly, and fixes
'make test' in a win9x mode.
2008-10-22 13:54:53 +02:00
Francois Gouget 215738a140 dirent.h is a conditional include now. 2008-10-20 11:37:27 +02:00
Alexandre Julliard 7f327237bf Convert remaining source files to utf-8. 2008-10-18 19:23:08 +02:00
Austin English 3b6daf2512 gdi32: Quiet a noisy fixme. 2008-10-17 13:13:34 +02:00
Detlef Riekenberg 57a5a60ca3 gdi32/tests: Fix tests to not depend on 96 dpi. 2008-10-14 13:41:55 +02:00
Jeremy White 484add2220 gdi32/tests: Make the comparison of the enumerated and returned logfont structures actually work. 2008-10-13 12:14:23 +02:00
Jeremy White fed3d50663 gdi32: Expand maximum font count to 4096, warn when we go over that limit. 2008-10-13 12:14:00 +02:00
Andrew Talbot 3a02030d54 gdi32: Sign-compare warnings fix. 2008-10-13 12:13:19 +02:00
Dmitry Timoshkov 7c1397412b gdi32: Revert incorrect fix introduced in a5d288f08c.
The real fix has been provided in 41aad2dce2.
2008-10-09 12:58:03 +02:00
Dmitry Timoshkov f898547b77 gdi32: Remove the code which bypasses the DC transformation checks.
If it's absolutely required to check the child list first, that should be
done inside of find_in_cache using the same comparisons as done there.
2008-10-09 12:57:54 +02:00
Paul Vriens 880f785747 gdi32/tests: Skip some tests on Win9x/WinMe. 2008-10-08 12:20:38 +02:00
Henri Verbeet 4f2a3c2c28 gdi32: Call AbortProc from StartDoc instead of EndPage. 2008-10-08 12:16:00 +02:00
Dmitry Timoshkov 0d1470575d gdi32: Allow a rounding error in the text justification test. 2008-10-06 15:30:40 +02:00
Dmitry Timoshkov c8d5730610 gdi32: Add a test for a font being selected into 2 DCs with different transformations. 2008-10-06 15:30:36 +02:00
Dmitry Timoshkov 0467d4e4c6 gdi32: Make test_font_metrics require the font being selected into the DC. 2008-10-06 15:30:31 +02:00
Andrew Talbot 44be6c7cbf gdi32: Sign-compare warnings fix. 2008-10-06 13:48:53 +02:00
Paul Vriens 4bf5c5f8a2 gdi32/tests: Fix a few failures on win9x. 2008-10-06 13:09:05 +02:00
Dmitry Timoshkov b31d7dbe8e gdi32: Do not skip the font metrics update after the DC transform change. 2008-10-02 10:28:36 -05:00
Dmitry Timoshkov 40e1e39785 gdi32: Make the PS_NULL test pass under Wine. 2008-10-01 09:56:41 -05:00
Dmitry Timoshkov 830f1563c6 gdi32: Add a test for PS_NULL pen being equal to NULL_PEN stock object. 2008-09-29 17:25:36 -05:00
James Hawkins e1d56fa4bd comctl32: Fix a failing test in win9x. 2008-09-29 17:24:07 -05:00
Alexandre Julliard ff6f7a57b9 gdi32/tests: Skip test that depends on Tahoma if it isn't installed. 2008-09-19 12:07:32 +02:00
Huw Davies 2f8f3facce gdi32: Factor out the name table lookup into a separate function. 2008-09-18 14:18:11 +02:00
Paul Vriens 84266fc6f6 gdi32/tests: Skip some failing tests on NT4. 2008-09-11 11:44:00 +02:00
Paul Vriens c50d922ef6 gdi32/tests: Prevent a crash on win95. 2008-09-11 11:43:52 +02:00
Dmitry Timoshkov 067cbc57f3 gdi32: Don't use pOS2->usWeightClass, some fonts don't set it correctly. 2008-09-11 11:42:02 +02:00
Shunichi Fuji de251e1c62 gdi32: Adjust FT_MulFix function to Freetype cvs head. 2008-09-04 11:41:08 +02:00
James Hawkins 5468f40ab8 gdi32: Fix a failing test in win9x. 2008-09-03 14:21:42 +02:00
James Hawkins 4c7cb8a339 gdi32: Fix a failing test in win98. 2008-08-29 13:22:14 +02:00
Alexandre Julliard e84bc545c3 gdi32: Add missing WineEngRealizationInfo function for the non-freetype case. 2008-08-25 15:38:27 +02:00
Dmitry Timoshkov 21cdaeea4b gdi32: Replace DC transform by font scaling for bitmap fonts. 2008-08-21 11:42:25 +02:00
Dmitry Timoshkov f322f70a69 gdi32: Avoid loading a bitmap if a glyph transformation is being requested. 2008-08-21 11:42:11 +02:00
Michael Karcher 3843d5beee winex11: Fix GetDIBits with monochrome pixmaps. 2008-08-18 17:15:56 +02:00
Huw Davies 67a5f256c4 gdi32: Don't use biSizeImage for a BI_BITFIELDS dib. 2008-08-18 17:04:44 +02:00
Alexandre Julliard 73423c1a40 gdi32/tests: Fix some test failures on Win9x. 2008-08-05 14:09:37 +02:00
Huw Davies 29637c1441 gdi32: Keep track of the number of unique fonts that are created and return this in the second DWORD of the GdiRealizationInfo structure. 2008-08-05 14:09:34 +02:00
Paul Vriens d1bcc32bf2 gdi32/tests: Don't test unimplemented functions. 2008-08-01 10:36:52 +02:00
Alexandre Julliard 680233f235 gdi32/tests: Allow some more rounding errors in glyph sizes. 2008-07-31 17:16:50 +02:00
Francois Gouget eb16f43bdf Add some API documentation stubs to make winapi_check happy. 2008-07-28 11:34:45 +02:00
Francois Gouget 56aab13ecc gdi32: Include config.h before using HAVE_XXX. 2008-07-28 11:34:23 +02:00
Lei Zhang 9b4f17f630 gdi32: Glyph advances should be measured for unrotated characters. 2008-07-23 11:56:09 +02:00
Lei Zhang 78a1e07c93 gdi32: Add a test for font orientation. 2008-07-23 11:56:00 +02:00
Lei Zhang ce552d4451 gdi32: CreateDIBitmap should check for SetDIBits failure. 2008-07-21 14:36:55 +02:00
Dmitry Timoshkov 02631adc8a Revert "gdi32: Reselect objects into the DC only if scaling factors change.".
This reverts commit 3cbd9639da.
2008-07-21 13:00:48 +02:00
Dmitry Timoshkov 7976d993f5 gdi32: Relax the gm.gmCellIncX comparison. 2008-07-21 13:00:42 +02:00
Andrew Talbot 613d17ae92 gdi32: Remove unneeded address-of operator from array name. 2008-07-11 13:58:48 +02:00
Michael Karcher 49eb123739 Add support for compatibility mode in WineEngCreateFontInstance. 2008-07-08 10:44:54 +02:00
James Hawkins 36e703b409 gdi32: Fix two tests that fail for all platforms. 2008-07-02 12:20:27 +02:00
Michael Karcher 8da833494d winex11: Fix GetDIBits of 1 bit DDBs.
1 bpp DDBs seem to always carry an implicit palette of black and white,
regardless of what the DC says. Based on a patch from Eric Pouech.
2008-07-01 14:59:14 +02:00
Michael Karcher fd8746b43c gdi32: Fix palette of 1bpp DIB in GetDIBits.
Windows always generates a black/white palette for 1 bit DIBs
generated from DDBs. Copying from the current palette only takes place
for color DDBs (not explicitly mentioned in MSDN), and only if depth
equal (MSDN states it, explicitly).
2008-07-01 14:58:54 +02:00
Michael Karcher 3f64708818 gdi32: Fix double->fixpoint conversion in freetype.c. 2008-07-01 14:58:41 +02:00
Alistair Leslie-Hughes 641d6aa5c2 gdi32: Stop crash in font tests. 2008-07-01 13:45:37 +02:00
James Hawkins 6796c880fa gdi32: Fix a failing test in win95. 2008-06-30 15:07:20 +02:00
Andrew Talbot 1dcc70ac17 gdi32: Pass correct pointer value to HeapFree(). 2008-06-27 11:29:58 +02:00
Dan Hipschman 92c8cac214 gdi32: Return the correct value from GetTextFace. 2008-06-25 11:41:00 +02:00
Dmitry Timoshkov 0d6dcc1e4e gdi32: Perform correct glyph scaling even if font metrics haven't been cached yet. 2008-06-24 12:23:10 +02:00
Dmitry Timoshkov 6f7457d8ad gdi32: Add a test for outline text metrics. 2008-06-24 12:23:03 +02:00
Dmitry Timoshkov e02168791e gdi32: Indent a block of code using 4 spaces instead of 5. 2008-06-24 12:22:49 +02:00