Commit Graph

909 Commits

Author SHA1 Message Date
Dmitry Timoshkov 5804470f26 gdi32: Make sure that World2Vport DC transformation is valid before using it. 2009-02-05 13:15:17 +01:00
Dmitry Timoshkov 24937a4f0f gdi32: Add a test for the MAT2 parameter of GetGlyphOutline, make it pass under Wine. 2009-02-03 12:40:27 +01:00
Dmitry Timoshkov 44589c6f8f gdi32: The MAT2 parameter of GetGlyphOutline is mandatory. 2009-02-03 12:40:24 +01:00
Alexandre Julliard 687dfd69e9 gdi32: Check for memory allocation failure in region functions and propagate the error correctly. 2009-01-29 21:45:01 +01:00
Alexandre Julliard ec4af0764b gdi32: Replace the MEMCHECK macro in the region code by a proper function. 2009-01-29 21:45:01 +01:00
Alexandre Julliard 919b1076c9 gdi32: Don't hold the GDI lock while creating regions. 2009-01-29 21:45:01 +01:00
Alexandre Julliard a686b8b583 gdi32: Store the region data directly in the GDI object. 2009-01-29 21:45:01 +01:00
Alexandre Julliard 73593cbf5a gdi32: Store a separate flag to mark a GDI object for delayed destruction. 2009-01-29 21:45:01 +01:00
Alexandre Julliard 827e1f1de3 gdi32: Increment the reference count for the initial DC stock objects. 2009-01-29 21:44:52 +01:00
Alexandre Julliard 7b82b98ee8 gdi32: Don't hold the GDI lock while calling the Freetype font engine functions. 2009-01-28 19:38:15 +01:00
Alexandre Julliard f1ea7a40f8 gdi32: Get rid of GDI_ReallocObject. 2009-01-28 19:04:04 +01:00
Alexandre Julliard a83c81b544 gdi32: Allocate palette entries separately from the main GDI object.
This allows resizing the palette without changing the object pointer.
2009-01-28 19:02:17 +01:00
Alexandre Julliard de831f334c gdi32: Release GDI handles before freeing the object.
This makes it unnecessary to hold the GDI lock during destruction.
2009-01-28 18:45:21 +01:00
Alexandre Julliard 311c53db4f gdi32: Allocate and initialize GDI objects before giving them a handle.
This makes it unnecessary to hold the GDI lock since the object
cannot be accessed before it has a handle.
2009-01-28 18:43:06 +01:00
Alexandre Julliard 5811a2ccb4 gdi32: Use the official constants instead of the old Win9x magic numbers for GDI object types. 2009-01-28 16:20:56 +01:00
Igor Tarasov 1b17c8d057 gdi32: Add logcal points to device points conversion for source bitmap before bit stretching. 2009-01-28 14:28:01 +01:00
Alexandre Julliard 68d19b9552 gdi32: Don't hold the GDI lock while calling the GetObjectA/W methods for GDI objects. 2009-01-27 16:30:43 +01:00
Alexandre Julliard 9ff44b815b gdi32: Don't hold the GDI lock while calling the UnrealizeObject method for GDI objects. 2009-01-27 16:26:35 +01:00
Alexandre Julliard f03871094c gdi32: Don't hold the GDI lock while calling the DeleteObject method for GDI objects. 2009-01-27 16:19:37 +01:00
Alexandre Julliard b4255d295d gdi32: Release the GDI lock when calling the DC DeleteObject function. 2009-01-27 16:15:47 +01:00
Andrew Nguyen e670b01f39 gdi32: Stub the NamedEscape function. 2009-01-27 15:22:40 +01:00
Alexandre Julliard 3939cb5c82 gdi32: Avoid some pointer casts. 2009-01-26 15:09:18 +01:00
Michael Stefaniuc 667a1ed5be gdi32: Remove superfluous pointer casts. 2009-01-26 14:31:13 +01:00
Alexandre Julliard cbe6e71775 gdi32/tests: Fix the mapping test to handle the more precise LOMETRIC settings on Vista. 2009-01-25 17:08:55 +01:00
Alexandre Julliard d2b217e90a gdi32/tests: Add a test case for calling WriteFile with the DIB section bits as buffer. 2009-01-15 12:06:15 +01:00
Alexandre Julliard ac543e5bc7 gdi32/tests: Fix an uninitialized value check and a structure size for Win64. 2009-01-10 21:05:52 +01:00
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
Dmitry Timoshkov b2fa21e4bb gdi32: Scale outline font metrics. 2008-06-24 12:22:42 +02:00
Dmitry Timoshkov 433c3cfeec gdi32: Don't return cached glyph metrics if a custom transformation was requested. 2008-06-24 12:22:31 +02:00
Dmitry Timoshkov 7ef471220d gdi32: Don't cache glyph metrics if they have a custom transformation. 2008-06-24 12:22:24 +02:00
Dmitry Timoshkov 8cdca3980a gdi32: Apply the custom transform to a glyph only if it's not an identity one. 2008-06-24 12:22:18 +02:00
Dmitry Timoshkov df76fe6f0c gdi32: Perform the world transform separately from font scaling. 2008-06-24 12:21:42 +02:00
Dmitry Timoshkov 8a6628aea5 gdi32: Font scaling transform is performed separately. 2008-06-24 12:21:28 +02:00
Dmitry Timoshkov 85c16fc45b gdi32: Don't forget to update the glyph advance in the case of a custom transformation. 2008-06-24 12:21:16 +02:00
Dmitry Timoshkov 9675720510 gdi32: Initialize otmMacAscent, otmMacDescent, otmMacLineGap in outline text metrics. 2008-06-24 12:21:06 +02:00
Dmitry Timoshkov e378795970 gdi32: Perform font height scaling with higher precision. 2008-06-24 12:20:55 +02:00
Dmitry Timoshkov ade4132b25 gdi32: Make GetOutlineTextMetrics set tmDigitizedAspectX/Y to real values as GetTextMetrics does. 2008-06-24 12:20:50 +02:00
Dmitry Timoshkov 41aad2dce2 gdi32: Extend the font substitution test, make it pass under Wine. 2008-06-23 12:53:22 +02:00
Dan Kegel 32393796bb gdi32: GdiConvertToDevmodeW should not refer to unintialized name bytes. 2008-06-23 12:46:12 +02:00
Dan Hipschman c1480126b1 gdi32: Add tests for GetTextFace.
Currently only GetTextFaceA is tested, and in an ancillary way, and the
behavior differs from GetTextFaceW.
2008-06-21 11:37:20 +02:00
Lei Zhang 71ed7573aa gdi32: Check for regular fonts by style instead of style name. 2008-06-21 11:37:00 +02:00
Dmitry Timoshkov e976877fa5 gdi32: Add a test for combined mapping mode/world transform changes. 2008-06-18 17:34:27 +02:00
Huw Davies 82c7ff811e gdi32: Initialize the handle table.
Fixes Valgrind warning: 'Conditional jump or move depends on
uninitialised value(s)' in metafile test.
2008-06-18 16:15:23 +02:00
Dmitry Timoshkov ecd5048ea7 gdi32: Use 0xffff as a default character as Vista does. 2008-06-18 15:21:49 +02:00
Dmitry Timoshkov 0cae67eaa5 gdi32: Print the assigned world transform. 2008-06-18 15:21:49 +02:00
Zhangrong Huang a21b3f0abd gdi32: Add more Asian codepages to get default fallback fonts. 2008-06-09 19:09:29 +02:00
Michael Karcher 5333923253 gdi32: Respect DIB_PAL_COLORS in every case. 2008-06-09 12:40:48 +02:00
Francois Gouget 8f91acc894 gdi32/tests: Take into account several Win9x bugs in GetObject(). 2008-06-05 15:53:32 +02:00
Alexandre Julliard 8f7f203649 gdi32/tests: Reduce the size of the test output a little. 2008-06-04 12:52:18 +02:00
Austin English bde1187488 gdi32: Fix a test failure in 2k. 2008-05-29 12:08:41 +02:00
Dmitry Timoshkov 02a15500fb gdi32: Make generated EMFs fully match Windows ones. 2008-05-27 12:05:37 +02:00
Dmitry Timoshkov 7aff723ccc gdi32: If there is no clipping rect, EMREXTTEXTOUT shouldn't have a bounding rect. 2008-05-27 12:04:52 +02:00
Dmitry Timoshkov 0c59e312c1 gdi32: Ignore exScale/eyScale when comparing EMREXTTEXTOUT EMF records. 2008-05-27 12:04:43 +02:00
Alexandre Julliard 00388c1b6a gdi32: Use atan2 to compute angles in WidenPath without triggering floating point errors. 2008-05-22 20:43:55 +02:00
Alexandre Julliard 93cbb7a5db gdi32: Perform coordinate transformations using doubles instead of floats to avoid precision loss. 2008-05-22 17:43:01 +02:00
Dmitry Timoshkov 8021a9d903 gdi32: Slightly relax EMF record comparisons allowing rounding errors. 2008-05-21 17:16:04 +02:00
James Hawkins 617d8fee03 gdi32: Fix two tests that fail in win2k3. 2008-05-19 13:36:05 +02:00
Dmitry Timoshkov a5d288f08c gdi32: Add more font substitution tests, make them pass under Wine. 2008-05-13 20:25:50 +02:00
Huw Davies 68420896eb gdi32: Move a couple of TRACEs to the beginning of functions. 2008-05-13 20:16:27 +02:00
Alexandre Julliard 7e2e30bade gdi32: Make sure the DC is up-to-date before accessing the pixel format. 2008-05-12 19:58:23 +02:00
Nikolay Sivov 1441311d36 gdi32: Avoid null pointer dereference in CreateDIBSection. 2008-05-12 13:59:13 +02:00
Alexandre Julliard 1d76b94b47 gdi32: Add missing braces in EMFDRV_SelectPalette. 2008-05-09 12:02:21 +02:00
Dmitry Timoshkov 2820682202 gdi32: Implement EMFDRV_SelectPalette. 2008-05-07 17:52:02 +02:00
Dmitry Timoshkov 51c28a1493 gdi32: More carefully compare EMF records in tests. 2008-05-07 17:51:43 +02:00
Dmitry Timoshkov 4efbf36cd5 gdi32: Set offPalEntries member of EMREOF to what XP sets it to. 2008-05-07 17:50:59 +02:00
Francois Gouget 125dac3af8 gdi32/tests: Add a trailing '\n' to a couple of ok() calls. 2008-05-06 16:10:01 +02:00
Maarten Lankhorst f74075b776 gdi32: Make mapping test slightly less strict so it passes on windows XP. 2008-05-06 11:25:26 +02:00
Huw Davies 515b40c2de gdi32: Rename DIB_BitmapInfoSize to bitmap_info_size and fix to take into account bit field masks. 2008-05-02 16:07:47 +02:00
Dan Hipschman c3537c4086 gdi32: Add font faces to families in a specific order. 2008-05-01 12:41:30 +02:00
James Hawkins c17bb019f4 gdi32: Remove a dependency on the amount of available memory. 2008-05-01 11:14:46 +02:00
Jeremy White f4625d1ae1 gdi32: Shift default height used in EnumStructs to the standard em size of 2048.
As pointed out by Dmitry Timoshkov.
2008-04-29 14:37:53 +02:00
Dmitry Timoshkov 80c1508bf1 gdi32: Make the bitmap test pass under Windows 2000. 2008-04-29 12:46:41 +02:00
Dmitry Timoshkov 5c15cf5f12 gdi32: info->state.next is always NULL, there is no need to save/restore it. 2008-04-29 12:46:35 +02:00
Dmitry Timoshkov c814d17c76 gdi32: Add SetPixel to the EMF DC functions. 2008-04-28 14:29:36 +02:00
Dmitry Timoshkov c871d9a81d gdi32: Save/restore internal EMF playing state on EMR_SAVEDC/EMR_RESTOREDC, add a test for this. 2008-04-28 13:27:52 +02:00
Dmitry Timoshkov d01438bd53 gdi32: Do not reselect objects while recording a metafile, that's done at the playing time. 2008-04-28 13:27:52 +02:00
James Hawkins b48118b472 gdi32: Remove a dependence on the amount of available memory. 2008-04-25 11:33:51 +02:00
Roderick Colenbrander f0307d9366 wgl: Add a wine specific WGL extension which allows you to change the pixel format multiple times. 2008-04-24 12:32:38 +02:00
Dmitry Timoshkov 3cbd9639da gdi32: Reselect objects into the DC only if scaling factors change. 2008-04-23 12:31:14 +02:00
Paul Vriens 55902e0ce0 gdi32/tests: Run tests on win9x again. 2008-04-23 12:23:15 +02:00
Dmitry Timoshkov 5201c78b2e gdi32: Add a test for EMR_EXTSELECTCLIPRGN, make it pass under Wine. 2008-04-21 16:59:03 +02:00
Alexandre Julliard baceb8d07e gdi32: Return bitmask for 32-bit bitmaps too in GetDIBits. 2008-04-21 12:10:37 +02:00
Dmitry Timoshkov f52b92efe5 gdi32: Add a test for ExtCreateRegion, make it pass under Wine. 2008-04-21 11:53:14 +02:00
Alexandre Julliard 99892d6bae gdi32: Fixed initialization of bit masks in GetDIBits for 16-bit bitmaps.
Fix and improve the test cases.
2008-04-18 13:57:15 +02:00
Andrew Talbot c3c219c905 gdi32: Remove unused variable. 2008-04-17 20:18:29 +02:00
Huw Davies 65d5c20a6b gdi32: LineDDA shouldn't include the end point. Add some tests. 2008-04-16 14:07:07 +02:00
Dmitry Timoshkov baded8789d gdi32: Map glyph to Symbol range only if the font supports symbol encoding. 2008-04-14 21:28:46 +02:00
Dmitry Timoshkov 2a2c66c062 gdi32: Clarify which font doesn't contain 'x'. 2008-04-14 12:40:22 +02:00
Alexandre Julliard 0482c8e818 gdi32: Fix CreateCompatibleDC to reject invalid DCs. 2008-04-14 12:06:24 +02:00
Colin Finck 8a2e787161 gdi32: Add a test to demonstrate a CreateCompatibleDC problem. 2008-04-14 12:05:29 +02:00
Huw Davies a643337c26 gdi32: Don't overrun the current scanline while copying a glyph's bitmap. 2008-04-08 13:25:02 +02:00
Dmitry Timoshkov 0fdd381f26 gdi32: Move negative lfWidth test into a separate body, skip the test if there is no 'x' in the font. 2008-04-07 20:34:49 +02:00
Dmitry Timoshkov c5d07b7c22 gdi32: Fix lfWidth before caching the font to avoid duplicate entries in the cache. 2008-04-07 20:34:37 +02:00
Dmitry Timoshkov 1f35b6e62e gdi32: Fully initialize face->ntmFlags on font load. 2008-04-07 12:14:14 +02:00
Austin English cb2274e690 Spelling fixes. 2008-04-04 11:51:40 +02:00
Dmitry Timoshkov 90265ac586 gdi32: Add a font scaling test when lfHeight == 0 and lfWidth != 0, make it pass under Wine. 2008-04-04 11:03:42 +02:00
Nikolay Sivov caafb52559 gdi32: PlgBlt implementation. 2008-04-02 13:30:15 +02:00
Mikołaj Zalewski 4094ff0256 gdi32: Fix GetGlyphIndices to select properly the invalid char glyph for TrueType fonts. 2008-04-02 12:36:42 +02:00
Dan Kegel 338539c709 gdi32: Test retrieving BI_BITFIELDS info for 16bpp modes. 2008-03-31 16:07:47 +02:00
Alexandre Julliard 6e387f34c5 gdi32: Store the return value separately in StretchDIBits instead of overwriting heightSrc. 2008-03-26 23:38:36 +01:00
Austin English 45b944ed51 gdi32: Spelling fixes. 2008-03-25 19:58:31 +01:00
Huw Davies 4b6d284de6 gdi32: Ignore fonts with names that begin with a '.'. 2008-03-21 12:44:20 +01:00
Aric Stewart bdaa54e64f freetype: Fix a typo that prevented checking more than the first range in Range Format 2. 2008-03-19 11:23:22 +01:00
Francois Gouget 8d38b1d60b gdi32: Remove a trailing space in a Wine trace. 2008-03-19 11:21:19 +01:00
Aric Stewart 36ac341b55 gdi32: Add loading and processing of GSUB table vert/vrt2 functions for proper tategaki (vertical writing). 2008-03-13 12:06:02 +01:00
Huw Davies e0693a1813 gdi32: Factor out FreeType initialization into a separate function. 2008-03-12 18:14:27 +01:00
Aric Stewart 5c1229982a gdi32: Skip leading @ from FontFace when looking for font to load. 2008-03-11 15:30:45 +01:00
Huw Davies 0436a5d14a gdi32: Store the Windows path (if it's available) in the font registry entries. 2008-03-10 19:12:54 +01:00
Alexandre Julliard 5953a86ab1 gdi32: Properly handle SetDIBits failure in StretchDIBits. 2008-03-10 19:12:53 +01:00
Jeremy White 5e1dd9577d gdi32: Revise CreateScalableFontResourceA to pass through CreateScalableFontResourceW. 2008-03-10 12:08:55 +01:00
Huw Davies 025d84e644 gdi32: Update both winnt and win9x font keys and factor out the cleanup code. 2008-03-10 11:23:19 +01:00
Hans Leidekker 81e9b43fb2 gdi32: Move GetICMProfile to the driver. 2008-03-05 19:46:03 +01:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Francois Gouget e637e83ec4 gdi32/tests: Add the trailing '\n' to a couple of ok() calls. 2008-03-03 12:03:52 +01:00
James Hawkins 26ad93947b janitorial: Remove links to any microsoft site. 2008-03-01 12:04:09 +01:00
Rob Shearman de75fe0a08 gdi32: Move 16-bit printing functions to printdrv16.c. 2008-02-29 20:08:21 +01:00
Andrew Talbot a4e8f4dcdd gdi32: Assign to structs instead of using memcpy. 2008-02-28 10:50:57 +01:00
Huw Davies 34002d4c7e gdi32: Add a partial implementation of GdiRealizationInfo. 2008-02-28 10:44:35 +01:00
Hans Leidekker d6bb9e76b3 gdi32: Return registered monitor profile from GetICMProfile. 2008-02-28 10:44:02 +01:00
Paul Vriens 7911424f9d gdi32/tests: Skip a test as it crashes on Vista. 2008-02-27 14:52:24 +01:00
Paul Vriens e9ccee0501 gdi32/tests: Skip functions that are available but not implemented. 2008-02-27 14:52:24 +01:00
Rob Shearman 582de7ba0d gdi32: Optimise StretchBlt for the case where no stretching is being done and the whole image is being set.
In this case, we can just call SetDIBits which is likely to be a lot faster.
2008-02-22 11:44:58 +01:00
Michael Stefaniuc de66aebebd gdi32: Move EnumFontFamiliesEx16() to gdi16.c and reimplement it based on EnumFontFamiliesExW(). 2008-02-20 12:07:03 +01:00
Aric Stewart a41e77448c gdi32: Japanese Windows had a default fallback Font SystemLink of Microsoft Sans Serif. Implement that for Japanese. 2008-02-19 14:56:22 +01:00
Michael Stefaniuc e9a8e6a426 gdi32: Move EnumFonts16 and EnumFontFamilies16 to gdi16.c. 2008-02-19 13:39:24 +01:00
Roderick Colenbrander c937634376 gdi32: GetPaletteEntries should not filter peFlags (test included). 2008-02-19 12:06:10 +01:00
Alexandre Julliard 1fa9e526ff gdi32: Avoid calling GetObject16 from 32-bit code. 2008-02-18 18:07:51 +01:00
Alexandre Julliard 30e2cb1616 gdi32: Move a few more gdiobj functions to gdi16.c. 2008-02-18 17:53:43 +01:00
Alexandre Julliard aa500d266f gdi32: Get rid of the 16-bit GetObject functions. 2008-02-18 17:50:35 +01:00
Alexandre Julliard a306af0c62 gdi32: Reimplemented GetObject16 and moved it to gdi16.c. 2008-02-18 17:46:29 +01:00
Alexandre Julliard 1fdae2b2a5 gdi32: Reimplemented IsGDIObject16 and moved it to gdi16.c. 2008-02-18 17:26:31 +01:00
Alexandre Julliard 50dea38178 gdi32: Export the DC hook functions as 32-bit functions. 2008-02-17 20:29:55 +01:00
Michael Stefaniuc 3db6eeeda9 gdi32: Move two 16bit function stubs to gdi16.c. 2008-02-13 16:41:03 +01:00
Gerald Pfeifer 21b334713c gdi32: For unsigned types, directly use INTERNAL_YDS 2008-02-12 22:35:43 +01:00
Detlef Riekenberg cbb85daa8f gdi32: Add stub for GdiInitSpool and GdiGetSpoolMessage. 2008-02-07 11:59:53 +01:00
Reece H. Dunn dc267e75b4 gdi32: Improve the failure reporting in the bitmap tests. 2008-02-06 13:49:52 +01:00
Alexandre Julliard 7fdb61bd7e gdi32: DC_GetDCPtr and DC_ReleaseDCPtr are not longer used. 2008-02-05 21:58:04 +01:00
Alexandre Julliard 1e3c47eae9 gdi32: Get rid of DC_GetDCPtr in the palette functions. 2008-02-05 21:57:35 +01:00
Alexandre Julliard 8815e63835 gdi32: Get rid of DC_GetDCPtr in the GDI object functions. 2008-02-05 21:17:28 +01:00
Alexandre Julliard 4b14a080fe gdi32: Get rid of DC_GetDCPtr in font functions. 2008-02-05 21:16:27 +01:00
Alexandre Julliard 35c09c01b2 gdi32: Use a separate critical section for freetype locking instead of relying on the GDI lock. 2008-02-05 21:16:06 +01:00
Alexandre Julliard 31576d408e gdi32: Avoid locking in BITMAP_CopyBitmap. 2008-02-05 18:26:25 +01:00
Alexandre Julliard 630c976f88 gdi32: Don't hold the GDI lock when calling DC_InitDC. 2008-02-05 18:26:18 +01:00
Alexandre Julliard 67a9edbdf4 gdi32: Get rid of a few more uses of DC_GetDCPtr. 2008-02-05 17:35:40 +01:00
Alexandre Julliard b962fca75c gdi32: Avoid locking in CreateCompatibleBitmap. 2008-02-05 17:34:56 +01:00
Aric Stewart 1ce79f87dd gdi32: Child fonts need to be scaled like their parent. With input from Dmitry Timoshkov. 2008-02-05 12:19:50 +01:00
Reece H. Dunn e3a5167ffe gdi32: Vista returns UNICODE_NOCHAR if a character does not exist. 2008-01-25 12:30:24 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Kai Blin a12f7069b0 gdi32: Fix spec file to export the right symbols for GetGlyphOutline. 2008-01-23 12:05:54 +01:00
Hans Leidekker 8d35fd8d23 gdi32: Add tests for GetICMProfile and SetICMMode. 2008-01-22 12:01:54 +01:00
Hans Leidekker 20c1e503e9 gdi32: Make GetICMProfile behave more like native. Rewrite ansi version as a wrapper and move color management functions to their own file. 2008-01-22 12:01:36 +01:00
Hans Leidekker 6f3607af0b gdi32: Last parameter of GetICMProfile is an output parameter. 2008-01-22 12:00:55 +01:00
Marcus Meissner a63664f1ec gdi32: Fix possible NULL ptr in TRACE. 2008-01-21 11:50:49 +01:00
Dmitry Timoshkov 0acfe68864 gdi32: Actually perform the fractional scaling test, make it pass under Wine. 2008-01-21 11:39:20 +01:00
Sin-ta Hsiea e61abafbb5 gdi32: Fix Traditional Chinese font mapping to "PMingLiU", "MingLiU". 2008-01-16 20:09:49 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Francois Gouget f6fab295f3 Fix spelling error in the generated conformance test files. 2008-01-16 12:46:18 +01:00
Francois Gouget 22edaaef16 gdi32: Small wording tweaks in comments. 2008-01-16 12:46:04 +01:00
Dmitry Timoshkov ec4a46f93a gdi32: Allocate cache for face enumeration data only when necessary. 2008-01-16 12:16:52 +01:00
Dan Kegel 3ed880ff9d gdi32: Fix AddFontResource behavior with relative paths. 2008-01-15 14:35:14 +01:00
Dmitry Timoshkov d5456de058 gdi32: Do not allow to create too large device dependent bitmaps like Windows does. 2008-01-15 12:39:50 +01:00
Dmitry Timoshkov 2fdaa56693 gdi32: Add a test for undocumented EnumFontFamiliesEx(NULL), make it pass under Wine. 2008-01-15 11:38:15 +01:00
Dmitry Timoshkov c7a6c1af0d gdi32: Initialize more fields in GetEnumStructs. 2008-01-14 13:11:48 +01:00
Dmitry Timoshkov d973271566 gdi32: Use public FS_xxxxxx defines. 2008-01-14 13:11:42 +01:00
Dmitry Timoshkov 4a8f9347bd gdi32: Simplify GetEnumStructs. 2008-01-11 12:23:14 +01:00
Dmitry Timoshkov f542511209 gdi32: Fix a GdiFont leak. 2008-01-11 12:22:44 +01:00
Dmitry Timoshkov 92a74a8271 gdi32: Fix the regression caused by the scaling font metrics patch. 2008-01-10 11:33:39 +01:00
Gerald Pfeifer 43837ed227 gdi32: Tighten range checking in PlayEnhMetaFileRecord() and remove four useless checks. 2008-01-09 13:38:03 +01:00
Dmitry Timoshkov 535053b927 gdi32: Add support for scaling font metrics. 2008-01-08 17:05:35 +01:00
Dmitry Timoshkov 3068ac9eca gdi32: Add more tests for bitmap font metrics scaling. 2008-01-08 12:54:49 +01:00
Eric Pouech 47a38c3631 gdi32: Break loop in MF_PlayMetaFile when META_EOF is found. 2008-01-07 23:02:19 +01:00
Alexandre Julliard 645a1e30a1 gdi32/tests: Avoid using size_t in traces. 2008-01-07 17:18:29 +01:00
Andrew Talbot d0d4c74e85 gdi32: Remove unneeded casts. 2008-01-07 12:18:50 +01:00
Dmitry Timoshkov 4bb1c18835 gdi32: Remove redundant indentation levels in CreateFontIndirectA and CreateFontIndirectW. 2008-01-04 12:12:14 +01:00
Austin English 464258b7cd Spelling fixes. 2008-01-03 13:08:54 +01:00
Hans Leidekker 864741c1b4 gdi32: Add a stub implementation for RemoveFontMemResourceEx. 2008-01-02 13:29:52 +01:00
Aric Stewart a8e62526f7 fonts: Correct External leading for japanese small font and enable fontmetric test for the font. 2007-12-27 14:13:30 +01:00
Peter Oberndorfer cea66e5859 gdi32: Fix a comment typo. 2007-12-23 14:17:11 +01:00
Zhangrong Huang 0e4f8d1e2c gdi32, winex11.drv: Correct default Chinese font name. 2007-12-21 13:46:10 +01:00
Dmitry Timoshkov c3fe9ec2f7 gdi32: Add a test for minimal acceptable DEVMODEA size, make it pass under Wine. 2007-12-20 10:47:40 +01:00
Dmitry Timoshkov c316c1a29f gdi32: In the calculations use a fixed dmSize, not a passed in (possibly too large) one. 2007-12-19 12:19:53 +01:00
Dmitry Timoshkov 49f1600b3f gdi32: When compiling with PSDK headers request latest DEVMODE definition. 2007-12-19 12:19:49 +01:00
Michael Stefaniuc 6b21feaec3 gdi32: There is no need to cast NULL to a function pointer. 2007-12-19 12:19:03 +01:00
Francois Gouget f1c27eda6b Assorted spelling fixes. 2007-12-18 14:16:11 +01:00
Dmitry Timoshkov beb2dfec2c gdi32: Add a GdiConvertToDevmodeW test, make it pass under Wine. 2007-12-18 13:30:42 +01:00
Stefan Dösinger 5461d505d7 winex11: Activate the depth-bpp difference. 2007-12-17 12:25:50 +01:00
Alexandre Julliard 976939745d gdi32/tests: Fix a compiler warning. 2007-12-14 14:31:06 +01:00
Stefan Dösinger b3d1ea8596 gdi32: Test the "alpha" channel on compatible bitmaps. 2007-12-14 14:06:45 +01:00
Aric Stewart 3c9e7aba75 gdi32: Cache font enum info.
Cache the enum info so that repeated calls to EnumFontFamiles and such
does not have to repeatedly load the font file.
2007-12-13 14:30:40 +01:00
Stefan Dösinger f2547427c0 gdi32: Test the bit depth of compatible bitmaps explicitly. 2007-12-13 13:09:55 +01:00
Stefan Dösinger d5d8a5be48 gdi32: Test bitmap depths. 2007-12-12 13:48:06 +01:00
Stefan Dösinger aa390e840b gdi32, winex11drv: Add a test for compatible bitmap depths. 2007-12-12 13:46:42 +01:00
Hans Leidekker 0dc765809c gdi32: GetCharABCWidthsI does not require a scalable font. 2007-12-10 12:27:13 +01:00
Aric Stewart 0433883ec1 gdi32: Font tests with Japanese font data. Thanks to Dmitry Timoshkov for the data and tests. 2007-12-10 12:12:57 +01:00
Detlef Riekenberg efb13b28df Assorted spelling fixes. 2007-12-08 19:55:39 +01:00
Hans Leidekker 8487c2dd2a gdi32: Implement GetTextExtentExPointI. 2007-12-03 15:54:05 +01:00
Gerald Pfeifer 24186d42da gdi32: Fix the type of two loop variables. 2007-11-29 15:36:49 +01:00
Andrew Talbot 03bba1e6d4 gdi32: Fix a typo. 2007-11-27 12:29:57 +01:00
Roderick Colenbrander 8295c547f3 wgl: Add wglCopyContext support. 2007-11-12 14:16:44 +01:00
Francois Gouget 2bbfc931d1 gdi32/tests: Dynamically load GdiAlphaBlend() so the test runs on Win9x. 2007-11-09 13:06:25 +01:00
Alexandre Julliard 9a368cc475 gdi32: Make all internal gdi functions hidden. 2007-11-07 17:50:57 +01:00
Laurent Vromman 52f769e88d gdi32: Correct a test where the tested function was not called. 2007-11-07 12:10:43 +01:00
Laurent Vromman 6f140f9bec gdi32: Add a test for CloseFigure. 2007-11-06 14:00:40 +01:00
Alexander Dorofeyev 3ac3a5dcb5 gdi32: Fix unchecked NULL ptr in BIDI_Reorder. 2007-10-24 15:36:37 +02:00
Dan Kegel f4b0cf5f5b gdi32/tests: Fix false pass in warn+heap case. 2007-10-24 13:47:28 +02:00
Alexander Dorofeyev cdca301821 gdi32: Fix runaway loop because of unsigned comparison in BIDI_Reorder. 2007-10-23 19:37:36 +02:00
Francois Gouget c4b1195c0c Assorted spelling fixes. 2007-10-23 18:20:27 +02:00
Hans Leidekker d21c5044c6 gdi32: Remove a test that expects the break character to equal ascii space. 2007-10-23 12:22:59 +02:00
Alexander Dorofeyev 4b5ca2ed0e gdi32: Fix off by one error in BIDI_Reorder. 2007-10-22 15:58:46 +02:00
Lionel Debroux b78ed57a39 gdi32/tests: Fix memory leak (found by Smatch). 2007-10-22 15:58:16 +02:00
Gerald Pfeifer d594c1eab4 gdi32: Add a set of braces to silence a GCC 3.4 warning. 2007-10-22 12:36:07 +02:00
Alexandre Julliard 5c07673077 configure: Check for fontconfig in the X directory if not found in the standard places. 2007-10-17 17:04:01 +02:00
Gerald Pfeifer 4e60df85d8 gdi32: Avoid compiler warning in WineEngGetGlyphOutline(). 2007-10-15 17:50:17 +02:00
Huw Davies bc2a4dbee0 gdi32: Try to load Wine's TrueType fonts from the build directory. 2007-10-15 11:28:31 +02:00
Huw Davies e5df622ff3 gdi32: Don't load Wine's bitmap-only TrueType fonts. 2007-10-15 11:28:26 +02:00
Huw Davies 6ee7182ebb gdi32: Factor out the code to call FT_Load_Sfnt_Table. 2007-10-15 11:10:32 +02:00
Huw Davies 36db3630ec gdi32: Fixed a misplaced break. 2007-10-05 10:23:54 +02:00
Huw Davies 05bb6f6ce4 gdi32: Let the WINE_GGO_GRAY16_BITMAP case load a bitmap. 2007-10-03 11:01:21 +02:00
Huw Davies 70c212937a gdi32: Only cache the glyph metrics when rendering to a monochrome bitmap or when just retrieving the metrics. 2007-10-03 11:01:15 +02:00
Huw Davies 5af70f49c6 gdi32: TrueType fonts from the data directory should be added to the registry. 2007-10-03 11:01:10 +02:00
Dmitry Timoshkov 5b8f591192 gdi32: Prefer a Microsoft cmap table over other platform ones. 2007-10-02 12:28:28 +02:00
Stefan Leichter 87a9a4d44b gdi32: Define WINE_FILEVERSION in version resource of gdi.exe. 2007-10-01 14:17:30 +02:00
Maarten Lankhorst 10834ee5c7 gdi32: Fix 3 tiny bugs in bidi. 2007-10-01 12:24:31 +02:00
Maarten Lankhorst 6b2a6a2bcf gdi32: Fix meaning and use of bidirectionality flags. 2007-10-01 12:24:14 +02:00
Alexandre Julliard d78a58298a gdi32: Don't hold the GDI lock while calling the driver SelectFont function. 2007-09-27 21:01:00 +02:00
Alexandre Julliard e9f1638de6 gdi32: Don't hold the GDI lock while calling the SelectObject backends. 2007-09-27 21:00:44 +02:00
Alexandre Julliard af6c0a09c5 gdi32: Move the object refcount handling to the SelectObject backend functions. 2007-09-27 20:57:02 +02:00
Alexandre Julliard a1e31397e1 gdi32: Don't pass an object pointer to the SelectObject backend functions. 2007-09-27 20:14:13 +02:00
Francois Gouget b2bc712323 Assorted spelling fixes. 2007-09-27 20:12:53 +02:00
Alexandre Julliard 161821155d gdi32: Fix typo in FIXME (spotted by Rob Shearman). 2007-09-27 18:05:57 +02:00
Anatoly Lyutin 7a67035a44 gdi32: printdrv: Use umask for creating a spool file. 2007-09-27 11:58:21 +02:00
Alexandre Julliard 3363d65f16 gdi32: Move the generic part of FontIsLinked() to font.c. 2007-09-26 20:21:34 +02:00
Alexandre Julliard 543270dfb5 gdi32: Don't pass a DC handle to WineEngGetFontUnicodeRanges. 2007-09-26 20:17:13 +02:00
Alexandre Julliard 1abc24d29c gdi32: Don't hold the gdi lock while calling DC driver functions. 2007-09-26 17:51:41 +02:00
Alexandre Julliard 7480bd3204 gdi32: Don't hold the gdi lock while creating a DC. 2007-09-26 17:39:25 +02:00
Andrew Talbot ce0e1706fe gdi32: Fix a memory leak. 2007-09-25 11:18:20 +02:00
Alexandre Julliard 58c6bab9c9 gdi32: Don't hold the GDI lock while calling the driver printer functions. 2007-09-24 18:23:42 +02:00
Alexandre Julliard b12a782e5f gdi32: Don't hold the GDI lock while calling the driver clipping functions. 2007-09-24 18:19:14 +02:00
Alexandre Julliard 2e2df3faf3 gdi32: Don't hold the GDI lock while calling the driver OpenGL functions. 2007-09-24 18:17:21 +02:00
Alexandre Julliard 5557fac1c3 gdi32: Don't hold the GDI lock while calling the driver painting functions. 2007-09-24 18:16:48 +02:00
Alexandre Julliard 0c4f81eefc gdi32: Don't hold the GDI lock while calling the driver path functions. 2007-09-24 18:16:29 +02:00
Alexandre Julliard a5a0d3c23b gdi32: Don't hold the GDI lock while calling the driver mapping functions. 2007-09-24 18:16:15 +02:00
Francois Gouget e2e25eacd9 gdi32: Add a '\n' to a Wine trace. 2007-09-21 11:52:21 +02:00
Dmitry Timoshkov b0d1590def gdi32: Use symbolic names for font tags. 2007-09-20 15:54:19 +02:00
Maarten Lankhorst b6f9a30a5d gdi: Implement line-by-line phase of the BiDi algorithm. 2007-09-19 14:56:51 +02:00
Maarten Lankhorst 588c5a90fd gdi: Implement implicit resolving in BiDi. 2007-09-19 14:56:51 +02:00
Maarten Lankhorst 032543e54d gdi: Implement neutrals resolving in BiDi. 2007-09-19 14:56:50 +02:00
Maarten Lankhorst 6554e5b1a1 gdi: Implement weak resolving in BiDi. 2007-09-19 14:56:50 +02:00
Maarten Lankhorst dbdf6fde20 gdi: Implement explicit resolving in BiDi. 2007-09-19 14:56:50 +02:00
Maarten Lankhorst 426debe187 gdi: Implement BiDi classification of characters and copying according to them. 2007-09-19 14:56:50 +02:00
Maarten Lankhorst c3cf79d817 gdi: Remove support for libicu and all dependencies. 2007-09-19 14:56:50 +02:00
Alexandre Julliard 9aee0b4157 gdi32: Update the DC in most OpenGL functions. 2007-09-18 09:34:08 +02:00
Alexandre Julliard 99a258311c gdi32: Replace remaining instance of DC_GetDCUpdate by get_dc_ptr+update_dc. 2007-09-18 09:34:08 +02:00
Alexandre Julliard baa8d22543 gdi32: Replace DC_GetDCUpdate by get_dc_ptr+update_dc in the bitmap functions. 2007-09-18 09:34:08 +02:00
Alexandre Julliard f3f792d064 gdi32: Replace DC_GetDCUpdate by get_dc_ptr+update_dc in the painting functions. 2007-09-18 09:34:07 +02:00
Alexandre Julliard f486f24b96 gdi32: Replace DC_GetDCUpdate by get_dc_ptr+update_dc in the clipping functions. 2007-09-18 09:34:07 +02:00
Chris Robinson 09c76ffbdc gdi32: Don't hold the GDI lock when setting the pixel format. 2007-09-17 16:19:04 +02:00
Mikolaj Zalewski c6efacd86a gdi32: Return the correct font type, ntmFlags and PitchAndFamily for Type1 fonts. 2007-09-17 14:37:44 +02:00
Mikolaj Zalewski 0eb910352c gdi32: If freetype fails try to load manually fonts wrapped as PE resources. 2007-09-17 14:37:32 +02:00
Mikolaj Zalewski baee27c69c gdi32: Implement AddFontMemResourceEx (based on a patch of Byeong-Sik Jeon). 2007-09-17 14:14:27 +02:00
Mikolaj Zalewski 66cf4f7d53 gdi32: Store child font links as pointers to struct Face instead of filename/index. 2007-09-17 14:13:46 +02:00
Alexandre Julliard f9ebe5ab8f gdi32: Don't store a DC pointer in the metafile devices. 2007-09-12 20:23:03 +02:00
Dmitry Timoshkov 4fb82e3783 gdi32: Use lower case font dir name to match unix directory layout. 2007-09-12 11:33:11 +02:00
Alexandre Julliard d88ff791ef gdi32: New DC locking mechanism that doesn't require holding the global GDI lock. 2007-08-31 15:58:38 +02:00
Aric Stewart 80cc1af347 gdi32: Allocate our glyph metrics in a 128 index chunk sparse array. 2007-08-30 17:02:48 +02:00
Steven Edwards c9a0da51a5 Remove more unneeded wine 16bit header usage. 2007-08-30 12:31:01 +02:00
Mikolaj Zalewski 9a72a865a2 winex11.drv: Test for out-of-bound src coordinates in GdiAlphaBlend. 2007-08-29 12:03:08 +02:00
Roderick Colenbrander e6f6d5fe95 gdi32: Print the function name in wglGetProcAddress. 2007-08-29 11:58:59 +02:00
Huw Davies a247ca5308 gdi32: Quote the printer name prior to passing it to the shell. 2007-08-23 12:37:39 +02:00
Alexandre Julliard e9a4c2351d gdi32: Fix a few more places that use the wrong get/release function for DCs. 2007-08-22 18:20:39 +02:00
Paul Vriens d469eca1c6 gdi32: Fix possible NULL pointer dereference (Coverity). 2007-08-22 12:18:59 +02:00
Paul Vriens 4b098028f3 gdi32: Fix possible NULL pointer dereference (Coverity). 2007-08-22 12:18:59 +02:00
Alexandre Julliard 1476e34645 gdi32: Add separate functions for releasing/freeing DCs to replace the standard GDI ones.
This should make it possible to use a different locking mechanism for DCs.
2007-08-21 21:37:40 +02:00
Francois Gouget ebadbd4bd5 Assorted spelling fixes. 2007-08-09 14:13:07 +02:00
Evan Stade cf8b59ef81 gdi32: Don't print fixme more than once. 2007-08-03 12:48:22 +02:00
Dmitry Timoshkov 2f71832ac9 gdi32: Also print a readable table name in the failure notice. 2007-08-02 12:18:42 +02:00
Francois Gouget 5266e57975 Assorted spelling fixes. 2007-07-31 21:37:50 +02:00
Dmitry Timoshkov 991d2d2632 gdi32: Make GetFontData traces more readable. 2007-07-31 20:50:51 +02:00
Evan Stade eca194da7f gdi32: Handle PS_USERSTYLE in ExtCreatePen. 2007-07-31 12:35:48 +02:00
Evan Stade ff5076c008 gdi32: Added more tests for ExtCreatePen on PS_USERSTLYE. 2007-07-31 12:35:30 +02:00
Evan Stade 030abff4ac gdi32: Improve ExtCreatePen parameter checking. 2007-07-31 12:35:23 +02:00
Alexandre Julliard cb0a626e50 gdi32/tests: Don't test default char, it doesn't have to be always the same. 2007-07-25 13:46:18 +02:00
Evan Stade 099bfbe1a4 gdi32: Improved PolyDraw in path closed case. 2007-07-19 14:46:54 +02:00
Evan Stade 96937e04a2 gdi32: Added PATH_PolyDraw. 2007-07-17 14:12:37 +02:00
Evan Stade 578ff168b3 gdi32: Added PolyDraw tests. 2007-07-17 14:12:29 +02:00
Jeremy White a2c2b60292 gdi32: Added a test for the case where lpvBits in GetDIBits is NULL and the bitcount is 0. 2007-07-16 13:38:09 +02:00
Jeremy White fa23944695 gdi32: Do not fill in the color table if lpvBits is NULL. 2007-07-16 13:37:59 +02:00
Dmitry Timoshkov cfe289e69d gdi32: Do not report an error if a requested to add font is already loaded. 2007-07-11 12:01:21 +02:00
Alexandre Julliard 24a55f3862 configure: Merge the libfreetype existence check with the soname check. 2007-07-09 22:43:20 +02:00
Huw Davies 7495d81495 gdi32: Using a bitmap font as the fallback sans serif is a very bad idea. 2007-07-05 19:54:52 +02:00
Misha Koshelev def420262b gdi32: Slightly simplify result handling in PolyDraw. 2007-07-05 19:52:45 +02:00
Evan Stade 53e05015f6 gdi32: Don't access DC in PolyDraw after releasing handle. 2007-07-04 12:06:58 +02:00
Alexandre Julliard ccd5f28429 configure: Make the libfontconfig soname check depend on the header check. 2007-07-02 19:42:52 +02:00
Alexandre Julliard 5a95cfbd9c configure: Export the shared library extension instead of hardcoding .so. 2007-07-02 14:35:05 +02:00
Evan Stade 39357c4ba6 gdi32: Added missing call to GDI_ReleaseObj. 2007-06-27 13:33:38 +02:00
Michael Stefaniuc b700e63d55 gdi32: Remove superfluous casts of void pointers to other pointer types. 2007-06-27 12:53:34 +02:00
Michael Stefaniuc 3f5fc520b5 gdi32: Multi-character character constants aren't portable as their behaviour is compiler dependent according to the C standard. Found by sparse. 2007-06-26 11:57:51 +02:00
Misha Koshelev 102a0a3b79 gdi32/tests: Fix test_widenpath to succeed on Win98. 2007-06-22 14:19:48 +02:00
Misha Koshelev 920b050a8b gdi32: Emulate AngleArc using ArcTo. 2007-06-22 14:19:06 +02:00
Misha Koshelev ce8e6d16cd gdi32/tests: Expand framework for tests of drawing functions in paths, add test for AngleArc in paths. 2007-06-22 14:18:57 +02:00
Misha Koshelev 859bf44c33 gdi32: Handle ArcTo in paths as native. 2007-06-21 16:03:29 +02:00
Misha Koshelev e04aebd654 gdi32: Allow arbitrary start entry types in PATH_DoArcPart, not just PT_MOVETOs. 2007-06-21 16:03:25 +02:00
Misha Koshelev 80b7134bb8 gdi32: Set current position properly after ArcTo. 2007-06-21 16:02:47 +02:00
Francois Gouget dddbd3cbdb gdi32/tests: Run the GetTextMetricsA() tests on Windows 9x too. 2007-06-21 15:37:43 +02:00
Misha Koshelev 1dbe178f5e gdi32: Fix ArcTo to use proper starting and ending points. 2007-06-19 11:57:32 +02:00
Misha Koshelev 2c9c761b56 gdi32/tests: Add framework for tests of drawing functions in paths, add test for ArcTo in paths. 2007-06-19 11:51:22 +02:00
Hans Leidekker 1871743543 gdi32: Add some tests for BITMAPINFOHEADER biSize checks. 2007-06-14 13:14:03 +02:00
Dmitry Timoshkov 2a81c1ada7 gdi32: Make BITMAPINFOHEADER biSize check match what other parts of code do. 2007-06-13 12:58:39 +02:00
Huw Davies 3739b5f995 gdi32: Pass an lpDx array to the driver if the escapement is non-zero, so that the driver has access to the unrotated advance widths. 2007-05-31 14:18:45 +02:00
Dmitry Timoshkov edbc6e7b8a gdi32: Fix compilation warnings in 64-bit mode. 2007-05-30 11:55:30 +02:00
Dmitry Timoshkov ab2934781c gdi32: Make SetDCHook 64-bit safe. 2007-05-30 11:51:26 +02:00
Francois Gouget 7ba8c0a420 gdi32/tests: Fix a signed/unsigned int mismatch. 2007-05-29 13:46:31 +02:00
Dmitry Timoshkov 6aa84e0eaf gdi32: Perform consistency checks when loading an EMF, add a test case. 2007-05-29 11:56:10 +02:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Louis Lenders d711728a7e gdi32: Add check for null pointer in SetDIBitsToDevice. 2007-05-08 12:21:58 +02:00
Dmitry Timoshkov bdfef82348 gdi32: AddFontResource should return a number of added font faces. 2007-05-04 13:42:47 +02:00
Dmitry Timoshkov 71929ffc4d gdi32: Handle errors in WineEngAddFontResourceEx. 2007-05-04 13:42:39 +02:00
Aric Stewart ec9f755086 gdi32: GetGlyphOutline needs to look at linked fonts as well. 2007-05-03 14:22:31 +02:00
Laurent Vromman 8b837bf8cb gdi32: Complete WidenPath implementation.
WidenPath now recognizes PS_JOINs and PS_ENCDAPs.
2007-05-02 14:58:49 +02:00
Andrew Talbot 260deef761 gdi32: Constify some variables. 2007-04-30 13:33:32 +02:00
Andrew Talbot 7bdba1b63a gdi32: Constify some variables. 2007-04-30 13:33:26 +02:00
Michael Stefaniuc 5f62da109e janitorial: Pass HEAP_ZERO_MEMORY as flag to HeapAlloc() instead of zeroing out the allocated memory in a later call. 2007-04-25 12:26:07 +02:00
Aric Stewart 1e4e99a295 gdi32: Make the comparison for system link font replacement not case sensitive. 2007-04-20 13:04:46 +02:00
Michael Kaufmann f265599f1b gdi32: Add a stub for CancelDC. 2007-04-17 11:21:06 +02:00
Dmitry Timoshkov ebe2ac4879 gdi32: Fix a couple of problems with negative lfWidth test. 2007-04-12 16:11:58 +02:00
Laurent Vromman 932c6f5bdd gdi32: Correct WidenPath behaviour when working on an open path. 2007-04-03 13:00:24 +02:00
Laurent Vromman 525fd82366 gdi32: Correction of WidenPath behaviour when pen width is 1. 2007-04-03 13:00:09 +02:00
Dmitry Timoshkov bc4bbb40d1 gdi32: Make GetKerningPairsA not fail for fonts with SYMBOL charset. 2007-04-02 11:34:27 +02:00
Laurent Vromman a11c751463 gdi32: Add two basic tests to check what WidenPath does. 2007-04-02 11:29:35 +02:00
Felix Nawothnig f73d7d07c8 gdi32: Properly handle negative font widths. 2007-04-02 11:18:38 +02:00
Francois Gouget 8d9fbef94f gdi32: Remove a space before '\n' in a trace. 2007-03-28 12:34:09 +02:00
Dmitry Timoshkov dab3825b18 gdi32: Make the EMF driver return sane NUMCOLORS value. 2007-03-28 12:05:26 +02:00
Laurent Vromman aaf74d9f64 gdi32: WidenPath partial implementation. 2007-03-26 14:54:56 +02:00
Dmitry Timoshkov 826e937a81 gdi32: Implement GdiGetCodePage. 2007-03-26 12:30:29 +02:00
Ken Thomases df605c0ac3 Revert "gdi32: Disable the freetype mmap sharing on Mac OS.".
This reverts ae9f68dec9 commit.  Because
of commit 4e6860433e which extracts the
constituent fonts from Mac suitcase fonts, we can use mmap on font
files on the Mac.
2007-03-22 11:28:10 +01:00
Andrew Talbot 453cb25c1b gdi32: Replace inline static with static inline. 2007-03-21 11:55:44 +01:00
Dmitry Timoshkov 520aa9f548 winex11.drv: In the case requested glyphs do not present in the font fail gracefully instead of asserting. 2007-03-19 12:16:57 +01:00
Nicolas Delcros 427a7638cb gdi32: Don't write a metafile record for escapes that require output. 2007-03-17 19:53:19 +01:00
Dmitry Timoshkov bd07f3f39e gdi32: Add a GetTextMetrics test, make it pass under Wine. 2007-03-15 13:09:56 +01:00
Felix Nawothnig 7fc0becf6e gdi32: Add PS_ALTERNATE tests. 2007-03-13 21:54:42 +01:00
Stefan Huehner 51a7ca3440 Change some functions arguments from () -> (void). 2007-03-12 12:25:31 +01:00
Aric Stewart 33eefa24dc gdi32: Search SystemLinked fonts when looking for a valid replacement. 2007-03-07 12:16:17 +01:00
Dmitry Timoshkov 7f16f21cf7 gdi32: Add an extensive EnumFontFamilies test, fix some failures when running under Wine. 2007-03-06 21:52:00 +01:00
Byeong-Sik Jeon 52a9d1d934 gdi32: Fix FontSubstitute values for Korean locale. 2007-03-06 21:51:05 +01:00
Byeong-Sik Jeon 0da17ff87b gdi32: Add missing pFT_Done_Face(). 2007-03-06 21:50:58 +01:00
Aric Stewart 3744cd8874 gdi32: Set FontSubstitute values by locale. 2007-03-06 12:10:07 +01:00
Paul Vriens a105c6b1de gdi32/tests: Use skip where appropriate. 2007-03-05 18:08:43 +01:00
Paul Vriens 37cba3a9f9 gdi32/tests: Make sure we can run on win9x and NT again. 2007-03-05 18:08:35 +01:00
Dmitry Timoshkov 17ac48b6a4 gdi32: Avoid a needless goto. 2007-03-05 12:14:07 +01:00
Aric Stewart 2967524bdb gdi32: Don't fail replacement on no localized family name. 2007-03-02 12:20:33 +01:00
Hans Leidekker 748032e0fb gdi32: Implement GetFontUnicodeRanges. 2007-03-02 11:39:32 +01:00