Commit Graph

1780 Commits

Author SHA1 Message Date
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
Ken Thomases 9ccad53fb9 gdi32: Use exec() and _exit() instead of system() and exit(). 2007-02-28 21:29:39 +01:00
Aric Stewart 76ed11e180 gdi32: Select correct replacement from ttc file.
Some font files, especially Asian ttc files, can have several
different families in the same file. So just using the file is not
unique enough for identifying a replacement family.
2007-02-26 19:06:19 +01:00
Aric Stewart bc07aff1a5 gdi32: Allow for loading of multibyte font name replacements.
Change a number of A function to W functions in LoadReplaceList to
allow for replacements of fonts with multibyte family names.
2007-02-26 19:05:43 +01:00
Alexandre Julliard 2d4735ae67 gdi32: Make DC creation fail if we cannot allocate the visible region. 2007-02-26 19:01:30 +01:00
Dmitry Timoshkov aa3fa9a5d9 gdi32: Avoid a not necessary CreateDC call. 2007-02-23 11:18:03 +01:00
Dmitry Timoshkov 14478b8ba2 gdi32: Move get_glyph_indices near its caller test_font_charset. 2007-02-20 12:24:00 +01:00
Dmitry Timoshkov 0457b0c346 gdi32: CreateBitmapIndirect should ignore the provided bm.bmWidthBytes. 2007-02-16 12:35:25 +01:00
Alexandre Julliard 6ede7a1130 gdi32/tests: Create a window for justification tests that generate output
instead of painting over the desktop.
2007-02-15 19:41:34 +01:00
Dmitry Timoshkov 8295d9040b gdi32: Skip the SYMBOL_CHARSET test if Symbol or Wingdings is not installed. 2007-02-15 16:55:23 +01:00
Dmitry Timoshkov 64e1ce40aa gdi32: Fix a typo in the memcmp call. 2007-02-15 15:42:54 +01:00
Pedro Araujo Chaves Jr 2051bcccca gdi32: Fix for GetTextExtentExPointW() and ExtTextOutW(). 2007-02-15 13:27:24 +01:00
Dmitry Timoshkov 37591409b2 gdi32: Revert 1440eb5a35 and add the test showing that the change was wrong. 2007-02-15 11:21:53 +01:00
Alexandre Julliard 6f7f2bf882 gdi32: Fixed typo in AngleArc. 2007-02-14 12:30:43 +01:00
Felix Nawothnig 7777a8eaf7 gdi32: Fix offset calculation in PATH_ExtTextOut for >1 chars. 2007-02-05 14:03:52 +01:00
Dmitry Timoshkov e915a3cfb1 gdi32: Make sure that we don't read/write beyond the provided buffer in GetOutlineTextMetricsA, add a test case. 2007-02-05 14:03:45 +01:00
Dmitry Timoshkov 0510a7a599 gdi32: CreateBitmap and friends should return stock DEFAULT_BITMAP if requested bitmap width or height is 0. 2007-02-05 12:24:55 +01:00
Dmitry Timoshkov 295f8101ec gdi32: Add a simple SelectObject test for bitmaps. 2007-01-22 13:29:27 +01:00
Dmitry Timoshkov f31b67ae44 gdi32: Add a GetDIBits test. 2007-01-22 13:29:21 +01:00
Francois Gouget aab5e5856e Don't put single quotes around '%s' when using the debugstr_*() functions. 2007-01-18 12:55:50 +01:00
Dmitry Timoshkov 101785d1a9 gdi32: Print status of the hinting support in the debug log. 2007-01-11 11:37:47 +01:00
Andrew Talbot 45bd6336c2 gdi32: Remove unused variables. 2007-01-09 12:02:21 +01:00
Andrew Talbot 21ebf42f83 gdi32: Declare some functions static. 2007-01-09 12:01:55 +01:00
Andrew Talbot d4fdeeaa46 gdi32: Remove unused function. 2007-01-09 12:01:50 +01:00
Francois Gouget 7a76ae1a65 gdi32/tests: Replace an '#if 0' with an 'if (0)'. 2007-01-08 12:09:05 +01:00
Francois Gouget c579d474a4 gdi32/tests: Tweak a test to avoid an '#if 0'. 2007-01-08 12:08:52 +01:00
Francois Gouget 51ab5c33c8 gdi32/tests: Print GetLastError() in decimal with '%u'. 2007-01-06 11:40:43 +01:00
Hans Leidekker 80e30f3d1b gdi32: Implement GetCharWidthI. 2007-01-02 20:30:17 +01:00
Alexandre Julliard 0bd3d8e68e gdi32: Avoid leaking a handle in MFDRV_ExtSelectClipRgn. 2007-01-02 17:09:10 +01:00
Dmitry Timoshkov 2cbf7d4d91 gdi32: Remove redundant debug channel, use the default one instead. 2007-01-02 12:09:14 +01:00
Huw Davies 4e6860433e gdi32: Extract the constituent TrueType files from Mac suitcase fonts into the user's caches directory
and use these instead of the original suitcase.
2006-12-21 17:24:56 +01:00
Huw Davies 42d372eb4a gdi32: Actually create the Wine fonts key if it doesn't exist. 2006-12-21 11:25:00 +01:00
Huw Davies 7329144c58 gdi32: Improve the fontconfig filtering hack so that Mac suitcase fonts get through. 2006-12-20 12:28:00 +01:00
Andrew Talbot 3d41200797 gdi32: Remove unused function. 2006-12-20 12:27:55 +01:00
Ulrich Czekalla 4d8135e0c8 winex11.drv: Avoid grabbing syslevel locks in the wrong order. 2006-12-15 13:43:14 +01:00
Alexandre Julliard 826c1d8700 gdi32: Use a more appropriate size for the default clip region. 2006-12-12 15:00:19 +01:00
Alexandre Julliard 21635133fb winex11.drv: Implemented DESKTOPHORZ/VERTRES device caps. 2006-12-12 14:59:55 +01:00
Andrew Talbot eef087cba7 gdi32/tests: Cast-qual warning fix. 2006-12-11 12:19:05 +01:00
Marcus Meissner f0280cbd1e made functions and variables static in some testcases. 2006-12-11 12:18:29 +01:00
Alexandre Julliard 33eadd39d4 gdi32: Don't assume that the font codepages change with the user locale.
Codepages can be set independently with LC_CTYPE.
2006-12-08 13:00:53 +01:00
Alexandre Julliard ae9f68dec9 gdi32: Disable the freetype mmap sharing on Mac OS. 2006-12-08 12:14:13 +01:00
Alexandre Julliard 834d20024b gdi32: Only mmap a given font file once.
FT_New_Face always creates a new mapping of the font file, so do the
mapping by hand and use FT_New_Memory_Face instead.
2006-12-06 21:31:53 +01:00
Francois Gouget bb8e625b5b Assorted spelling fixes. 2006-12-05 10:31:47 +01:00
Alexandre Julliard d5ee62342a winex11.drv: Don't use the specified DC when mapping RGB colors for a DIB.
The DC palette only matters for DIB_PAL_COLORS.
2006-11-27 17:04:19 +01:00
Alexandre Julliard 75b8f88875 gdi32: Get rid of the gdi.h include. 2006-11-17 14:52:07 +01:00
Alexandre Julliard 456891b377 gdi32: Stop exporting GDI_GetObjPtr and GDI_ReleaseObj. 2006-11-17 14:39:04 +01:00
Alexandre Julliard bb51f96907 gdi32: Get rid of the palette mapping handling and leave it up to the driver. 2006-11-17 14:38:11 +01:00
Alexandre Julliard ed4f22ab5f gdi32: Moved the system palette flags to winex11.drv. 2006-11-17 14:34:44 +01:00
Alexandre Julliard c60757b7d8 gdi32: Avoid accessing the internal palette object from dib.c. 2006-11-17 14:34:20 +01:00
Mike McCormack f76d3c259c gdi32: Downgrade a FIXME to a WARN. 2006-11-09 11:44:40 +01:00
Alexandre Julliard f7ffbe4581 gdi32: Remove call to CreateCompatibleDC() from GetDIBits() implementation.
Based on a patch by Alex Villacís Lasso.
2006-11-08 19:57:30 +01:00
Roderick Colenbrander 1d4effcaa5 wgl: Fix WoW screen flickering. 2006-11-06 12:13:09 +01:00
Roderick Colenbrander 2506677c60 winex11.drv: Route wglMakeContextCurrentARB through gdi32. 2006-10-31 21:34:36 +01:00
Andrew Talbot 17ec5aba20 gdi32: Cast-qual warnings fix. 2006-10-31 11:46:36 +01:00
Andrew Talbot 58df7b6605 gdi32: Cast-qual warnings fix. 2006-10-31 11:46:30 +01:00
Andrew Talbot 5a2227f86e gdi32: Cast-qual warnings fix. 2006-10-30 11:25:47 +01:00
Andrew Talbot 7b2c27aadf gdi32: Cast-qual warnings fix. 2006-10-30 11:25:44 +01:00
Roderick Colenbrander 88ad69f9bd wgl: Move part of wglGetProcAddress to gdi32. 2006-10-27 12:43:31 +02:00
Eric Pouech bc7df7ad80 gdi32: Better error handling in enhanced metafile. 2006-10-24 11:32:12 +02:00
Alexandre Julliard 7dfc447741 gdi32: Renamed the gdi directory to gdi32. 2006-10-20 12:25:29 +02:00