Marcus Meissner
f5c5a30724
gdi32: Fixed passed buffer size.
2012-09-10 11:39:43 +02:00
Alexandre Julliard
05c32b9b89
gdi32: Move the SwapBuffers entry point to the OpenGL driver.
2012-09-10 11:38:28 +02:00
Qian Hong
245308597f
gdi32: Fixed family and face name on non English locale.
2012-09-07 13:33:47 +02:00
Qian Hong
733aca30f4
gdi32: Read otmpFullName from TT_NAME_ID_UNIQUE_ID.
2012-09-07 13:32:56 +02:00
Qian Hong
abc8f2c6c2
gdi32: Read otmpFaceName from TT_NAME_ID_FULL_NAME.
2012-09-07 13:32:35 +02:00
Qian Hong
180185d890
gdi32/tests: Added font name tests on English locale.
2012-09-07 13:32:06 +02:00
Alexandre Julliard
27b0b88a0b
gdi32: Add a graphics driver to render windows contents through the DIB engine.
2012-09-06 12:24:25 +02:00
Alexandre Julliard
01c9c1cbc2
gdi32: Let user32 specify the device rectangle when setting the visible region.
2012-09-05 21:56:56 +02:00
Alexandre Julliard
bf528c5e9c
gdi32: Allow removing a driver from the stack based on its function table.
2012-08-21 12:59:18 +02:00
Alexandre Julliard
0f5cc668ba
gdi32: Add a helper function to find a specific driver in the DC stack.
2012-08-21 12:54:01 +02:00
Dmitry Timoshkov
c8d61899db
gdi32: Make sure that pattern info is initialized before being used.
2012-08-20 10:52:57 +02:00
Michael Stefaniuc
4d3a7aa268
gdi32: Avoid TRUE:FALSE conditional expressions.
2012-08-13 17:29:23 +02:00
Alexandre Julliard
747d1631d5
gdi32: Compute the line parameters using the cropped coordinates to avoid overflows.
2012-07-31 17:59:12 +02:00
Alexandre Julliard
96e80c2623
gdi32: Move DescribePixelFormat and SetPixelFormat to the WGL driver.
2012-07-30 22:12:13 +02:00
Alexandre Julliard
6714f16c74
gdi32: Clip solid pen regions to the DIB rectangle to avoid overflows.
2012-07-30 17:13:36 +02:00
Alexandre Julliard
a9151e5da3
gdi32: Limit line drawing coordinates to reasonable values to avoid overflows.
2012-07-30 17:13:36 +02:00
Alexandre Julliard
78d12e7fcc
gdi32: Add a helper function to initialize Bresenham parameters for line drawing.
2012-07-30 17:13:35 +02:00
Alexandre Julliard
35eef16ba7
gdi32: Support OpenGL in bitmaps through libOSMesa.
2012-07-27 17:05:16 +02:00
Alexandre Julliard
592e6aa942
gdi32: Work around a gcc array out of bounds warning.
2012-07-23 14:52:32 +02:00
Alexandre Julliard
4c0779006e
opengl32: Move the wgl functions to the main OpenGL function table.
2012-07-19 22:50:37 +02:00
Alexandre Julliard
6a8ded433b
gdi32: Remove left-over debug trace.
2012-07-19 20:27:39 +02:00
Alexandre Julliard
7c9d35e575
gdi32: PatBlt needs to bypass the brush for ROPs that don't make use of it.
2012-07-19 15:42:31 +02:00
Francois Gouget
7b782d435e
gdi32: Remove an unused wgl debugging channel.
2012-07-11 10:00:47 -05:00
Alexandre Julliard
4c3cc50104
gdi32: Fix bitmap glyph allocation size in ExtTextOut fallback implementation.
2012-07-02 10:58:57 +02:00
Alexandre Julliard
83be88953b
opengl32: Make the WGL driver context-specific.
2012-06-29 20:41:36 +02:00
Alexandre Julliard
d89f7f2563
opengl32: Move checks of the context thread id to opengl32.
2012-06-29 20:41:35 +02:00
Alexandre Julliard
0045ec9dfb
opengl32: Use proper handles for GL contexts and pass a context pointer to the WGL driver functions.
2012-06-29 20:41:34 +02:00
Alexandre Julliard
e059d565ab
gdi32: Add a null WGL driver.
2012-06-28 18:52:27 +02:00
Alexandre Julliard
6a9dcd51a2
gdi32: Remove the remaining OpenGL entry points from the DC driver.
2012-06-28 18:52:23 +02:00
Alexandre Julliard
edfc7f0de0
opengl32: Move wglGetProcAddress to the WGL driver.
2012-06-28 16:14:55 +02:00
Alexandre Julliard
8a13afedd6
opengl32: Move GetPixelFormat to the WGL driver.
2012-06-28 15:53:14 +02:00
Alexandre Julliard
bbdf77a311
opengl32: Move wglCreateContext to the WGL driver.
2012-06-28 15:47:31 +02:00
Alexandre Julliard
3bcb8057a1
opengl32: Move wglCreateContextAttribsARB to the WGL driver.
2012-06-28 15:07:44 +02:00
Alexandre Julliard
7a031d9b92
opengl32: Add the concept of a WGL driver.
2012-06-28 14:37:31 +02:00
Alexandre Julliard
db25d4022a
winex11: Simplify wglSetPixelFormatWINE and export it as a standard extension function.
2012-06-28 13:13:01 +02:00
Stefan Leichter
db21158faa
gdi32: Spelling fix.
2012-06-28 11:37:03 +02:00
Alexandre Julliard
4a367c5719
winex11: Export wglMakeCurrent and wglMakeContextCurrentARB as standard extension functions.
2012-06-28 01:44:03 +02:00
Alexandre Julliard
67e7eda96c
gdi32: Forward SwapBuffers to opengl32 which in turn calls GdiSwapBuffers.
2012-06-26 12:24:15 +02:00
Alexandre Julliard
c013945728
gdi32: Forward SetPixelFormat to opengl32 which in turn calls GdiSetPixelFormat.
2012-06-26 12:24:15 +02:00
Alexandre Julliard
e9f270bd41
gdi32: Forward DescribePixelFormat to opengl32 which in turn calls GdiDescribePixelFormat.
2012-06-26 12:24:14 +02:00
Alexandre Julliard
81cd178ae1
winex11: Move ChoosePixelFormat implementation to opengl32 and base it on DescribePixelFormat.
2012-06-26 12:24:09 +02:00
Alexandre Julliard
ee21554893
gdi32: Remove OpenGL functions that don't use an HDC from the driver entry points.
2012-06-25 16:25:57 +02:00
Alexandre Julliard
1c2f9255f4
gdi32: Fix StretchDIBits return value when destination is clipped.
2012-06-22 14:39:28 +02:00
Dan Kegel
b85270e3a5
gdi32: Add test for SelectClipRgn in metafiles, make it pass.
2012-06-20 10:50:15 +02:00
Akihiro Sagawa
f503afd86f
gdi32: Remove an outdated comment in struct DefaultFontInfo.
2012-06-18 11:59:40 +02:00
Akihiro Sagawa
2bb416baa8
gdi32: Fix East-Asian font parameters.
2012-06-18 11:59:40 +02:00
Akihiro Sagawa
afdc84cf03
gdi32/tests: Make GetStockObject tests pass on East-Asian machines.
2012-06-18 11:59:39 +02:00
Alexandre Julliard
b61925e1ea
gdi32: Fix the contents of the region data in metafiles.
2012-06-18 10:54:30 +02:00
Dmitry Timoshkov
e65b19cad3
gdi32: Do not normalize height of the default GUI font.
2012-06-12 10:15:26 +02:00
Alexandre Julliard
c07763b419
gdi32: Clip output to both the DIB visible rectangle and the total DIB extents.
2012-06-04 22:23:15 +02:00
Alexandre Julliard
319a87c86e
gdi32: Take into account the DIB rectangles when determining overlap for blits.
2012-06-04 22:23:13 +02:00
Dmitry Timoshkov
cca41207c1
gdi32: Fix parameters of some GDI stock fonts.
2012-06-04 12:17:53 +02:00
Dmitry Timoshkov
4fa2945544
gdi32/tests: GetGlyphOutline should fail for a bitmap font.
2012-06-01 13:25:52 +02:00
Alexandre Julliard
6d23f3e7e1
gdi32: Keep the source DC locked until the end in StretchBlt and AlphaBlend.
2012-05-31 15:33:12 +02:00
Alexandre Julliard
61f4767ade
gdi32: Don't implement the gamma ramp functions in the DIB driver.
2012-05-31 13:44:32 +02:00
Alexandre Julliard
af4871f862
gdi32: Make sure the bounds are always updated in ExtTextOutW.
2012-05-30 21:35:22 +02:00
Alexandre Julliard
93758c43fd
gdi32: Remove the CreateBitmap and DeleteBitmap driver entry points.
2012-05-29 21:06:41 +02:00
Alexandre Julliard
1416d0e6f1
gdi32: Remove the bitmap parameter from the Get/PutImage entry points.
2012-05-29 21:05:52 +02:00
Alexandre Julliard
7c4c233d12
gdi32: Add a helper function that implements PutImage on a bitmap.
2012-05-29 18:20:12 +02:00
Alexandre Julliard
cf85fb14ab
gdi32: Add a helper function that implements GetImage on a bitmap.
2012-05-29 18:20:11 +02:00
Alexandre Julliard
b6f25e5250
gdi32: Remove the null driver Get/PutImage fallbacks for bitmaps.
2012-05-29 18:20:11 +02:00
Alexandre Julliard
592bfd52c9
gdi32: Always use the DIB engine for DDB rendering.
2012-05-29 18:20:10 +02:00
Alexandre Julliard
77ee0b56bb
gdi32/tests: Add some more tests for monochrome bitmap blits.
2012-05-29 18:17:47 +02:00
Alexandre Julliard
df924f6a8c
gdi32: Fix StretchBlt color mapping for monochrome bitmaps without a color table.
2012-05-29 18:17:22 +02:00
Alexandre Julliard
c2784e08fc
gdi32: Improve support of bitmaps without a color table in PutImage.
2012-05-29 18:16:30 +02:00
Alexandre Julliard
8761bb29ea
gdi32/tests: Add tests for color mappings in monochrome bitmaps.
2012-05-25 11:47:55 +02:00
Alexandre Julliard
b81a7d976e
gdi32: Always use the DIB engine for monochrome bitmap rendering.
2012-05-25 11:47:46 +02:00
Alexandre Julliard
294faf5ef3
gdi32: Check that the bitmap depth matches the DC when selecting it.
2012-05-25 11:19:36 +02:00
Alexandre Julliard
fdc4682e31
gdi32: Remove the CopyBitmap driver entry point.
2012-05-24 22:09:19 +02:00
Alexandre Julliard
a196ad8fc1
gdi32: Always store a copy of the bitmap bits for pattern brushes.
2012-05-24 19:53:23 +02:00
Alexandre Julliard
8a86f6c993
gdi32: Don't use the DC colors when drawing a monochrome pattern to a monochrome DDB.
2012-05-23 20:24:08 +02:00
Alexandre Julliard
139aeba3ef
gdi32: Implement dithering of solid brushes when drawing to DDBs.
2012-05-23 20:24:03 +02:00
Alexandre Julliard
664442ab84
gdi32: Don't store the default color table in dib_info objects.
2012-05-23 17:22:17 +02:00
Alexandre Julliard
9968f3083a
gdi32: Use the default color table when mapping colors in bitmaps that don't have one.
2012-05-23 17:22:07 +02:00
Alexandre Julliard
b8e4cd81ab
gdi32: Simplify creation of hatch masks and avoid endianness issues.
2012-05-23 17:22:03 +02:00
Alexandre Julliard
574a07e4c9
gdi32: Add a helper function to allocate the brush bits.
2012-05-22 22:03:18 +02:00
Alexandre Julliard
b708b40105
gdi32: Pass a rop_mask_bits object to the pattern_rects primitive.
2012-05-22 21:52:44 +02:00
Alexandre Julliard
524aef660e
gdi32: Use a rop_mask_bits object to store the brush bits.
2012-05-22 21:47:30 +02:00
Alexandre Julliard
3c2502a8c7
gdi32: Add support for dithering pattern brushes when painting to monochrome bitmaps.
2012-05-22 17:43:52 +02:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Alexandre Julliard
1392bfce3c
gdi32: Pass OpenGL calls through to the display driver from the DIB engine.
2012-05-09 17:37:37 +02:00
Dmitry Timoshkov
82a4c5a6a3
gdi32: Set tmDigitizedAspectX/Y to 96 instead of 300 for consistency.
2012-05-09 12:06:34 +02:00
Dmitry Timoshkov
ab7fe6086e
gdi32: Add a test for ntmCellHeight calculation.
2012-05-08 19:51:12 +02:00
Alexandre Julliard
147174ff1c
winex11: Implement wglGetPbufferDCARB with a DC escape and remove it from the GDI driver interface.
2012-05-08 14:35:44 +02:00
Alexandre Julliard
eb80e6f2db
gdi32: Allow a driver to implement SelectBitmap but not CreateBitmap.
2012-05-08 14:32:32 +02:00
Alexandre Julliard
e94d3b4e08
gdi32: Add a priority mechanism for pushing drivers on the stack in a defined order.
2012-05-08 12:16:50 +02:00
Alexandre Julliard
6a19d9f252
gdi32: Support drawing to a visible rectangle smaller than the whole bitmap in the DIB engine.
2012-05-01 14:28:39 +02:00
Alexandre Julliard
025b58870e
gdi32: Always pass the actual coordinates to the get_pixel_ptr functions.
2012-05-01 11:41:19 +02:00
Alexandre Julliard
41e5bc06d8
gdi32: Add support for clipping source coordinates to the DC device rectangle.
2012-04-30 22:47:35 +02:00
Jeff Muizelaar
2da2f001cf
gdi32: Improve performance of common case of AlphaBlend.
2012-04-30 20:03:28 +02:00
Alexandre Julliard
3ea711dd7c
gdi32: Store the bounds rectangle as a pointer in the DIB driver.
2012-04-27 12:49:20 +02:00
Alexandre Julliard
3009e03df7
gdi32: Add a SetBoundsRect driver entry point.
2012-04-27 12:41:43 +02:00
Dmitry Timoshkov
5476c0e2b9
gdi32: ntmCellHeight and ntmAvgWidth should be in font units.
2012-04-24 18:44:07 +02:00
Dmitry Timoshkov
57fbf1434c
gdi32: Enumerated font size should not be too large.
...
This reverts commit f4625d1ae1
.
2012-04-24 18:43:45 +02:00
Alexandre Julliard
9674011d75
gdi32: Fix coordinates for row copies in mirrored vertical stretching.
2012-04-24 17:37:53 +02:00
Alexandre Julliard
6c2235cf98
gdi32: Fix some typos in the 4-bpp shrink_row function.
2012-04-23 14:58:12 +02:00
Alexandre Julliard
caf15dd797
gdi32/tests: Take into account multi-monitor setups in the clip region tests.
2012-04-20 12:12:21 +02:00
Daniel Lehman
2c5d7d716a
gdi32: Don't add_join if points are coincident in wide_line_segments.
2012-04-18 17:15:19 +02:00
André Hentschel
9cf97e18b4
gdi32: Remove unneeded shadow variable.
2012-04-18 17:11:39 +02:00
Alexandre Julliard
4a87722144
winex11: Add bounds rectangle tracking to all graphics entry points.
2012-04-18 13:50:56 +02:00
Alexandre Julliard
8b7760292d
gdi32/tests: Fix a test that can fail on multi-monitor setups.
2012-04-17 16:40:57 +02:00
Alexandre Julliard
34457aa4c3
gdi32: Add bounds tracking to all the DIB engine entry points.
2012-04-16 17:49:22 +02:00
Alexandre Julliard
582a2f511f
gdi32: Add a GetBoundsRect driver entry point.
2012-04-16 13:53:23 +02:00
Alexandre Julliard
b1ccff1a9c
gdi32: Add helper functions for manipulating bounds rectangles.
2012-04-16 13:41:29 +02:00
Michael Stefaniuc
7f293b00e8
gdi32/tests: Fix typo (comparison with itself).
2012-04-16 12:05:54 +02:00
Dmitry Timoshkov
34608a5108
gdi32: Add large fonts support for MS Sans Serif.
2012-04-13 16:09:45 +02:00
Alexandre Julliard
81fcb10977
gdi32/tests: Add test cases for wide pen bounding rectangles.
2012-04-13 16:09:39 +02:00
Alexandre Julliard
6c028b19c5
gdi32: Avoid redundant computation of the gradient bounding rectangle.
2012-04-13 13:41:16 +02:00
Alexandre Julliard
ea5fa7ddbe
gdi32: Map all the points at once in PolyPolyline, similarly to what PolyPolygon does.
2012-04-13 13:39:06 +02:00
Alexandre Julliard
568afc210e
gdi32: Move the pen/brush_region helpers to graphics.c and avoid redundant clipping.
2012-04-13 13:36:23 +02:00
Dmitry Timoshkov
31f6f48bfd
gdi32: Add a test for bitmap fonts selected for not existing font sizes.
2012-04-10 19:54:34 +02:00
Alexandre Julliard
88bcd13d7f
gdi32: Store the reference DC in the enhanced metafile and use it to retrieve device caps.
2012-04-10 16:21:24 +02:00
Alexandre Julliard
2776a97931
gdi32: Add explicit fields for the DC flags.
2012-04-10 16:21:23 +02:00
Alexandre Julliard
b762fcc9a7
gdi32: Clip the returned DC bounds to the device rectangle.
2012-04-10 16:21:11 +02:00
Alexandre Julliard
5917bd3959
gdi32: SaveDC doesn't save the DC bounds.
2012-04-10 16:19:20 +02:00
Alexandre Julliard
80f68d4442
gdi32/tests: Add tests for DC bounds handling across various DC manipulations.
2012-04-10 16:17:47 +02:00
Alexandre Julliard
a186a8b170
gdi32/tests: Add tests for DC bounds on various device types.
2012-04-10 13:20:01 +02:00
Alexandre Julliard
399ab6f1f2
gdi32/tests: Add tests for DC bounds to the DIB graphics tests.
2012-04-09 22:59:11 +02:00
Alexandre Julliard
514e952827
gdi32/tests: Automatically reset the bits after comparing the hash.
2012-04-09 21:28:50 +02:00
Dmitry Timoshkov
1f00c01ea5
gdi32: Add more verbose messages to indicate when a font is being added/replaced/refused to load.
2012-04-09 17:28:46 +02:00
Dmitry Timoshkov
e7a1362880
gdi32: Fix a typo in faces_equal() preventing loading all sizes of a bitmap font.
2012-04-09 17:28:43 +02:00
Alexandre Julliard
1ca6ed7748
gdi32: Fix GetClipBox return value for non-memory DCs.
2012-04-09 17:15:59 +02:00
Ken Thomases
9cb7a97981
gdi32: On Mac OS X, find fonts using Core Text rather than FontConfig, by default.
2012-04-05 14:51:34 +02:00
Ken Thomases
272cf2a973
Revert "gdi32: Load fonts from default Mac external font paths.".
...
This reverts commit 85a71387da
.
2012-04-05 14:51:33 +02:00
Kusanagi Kouichi
c0c7547f37
gdi32: Improve font cache.
2012-04-02 18:37:48 +02:00
Dmitry Timoshkov
62b9c26bb5
gdi32: Refuse to load a large .fot file earlier.
2012-04-02 12:42:22 +02:00
Dmitry Timoshkov
b2af51956d
gdi32: Remove a no longer needed shortcut in CreateScalableFontResource test.
2012-04-02 12:41:40 +02:00
Kusanagi Kouichi
35c84cddcc
gdi32: Use helper functions when loading font from cache.
2012-03-30 15:30:01 +02:00
Huw Davies
88a2620b14
gdi32: Add support for loading scalable font resources.
2012-03-30 15:29:40 +02:00
Huw Davies
105caa28bf
gdi32: Implement CreateScalableFontResource.
...
Based on patches by Jeremy White and Dmitry Timoshkov.
2012-03-29 18:16:06 +02:00
Huw Davies
7ac623f380
gdi32: Add a helper to create a new FreeType face.
2012-03-29 18:15:39 +02:00
Huw Davies
0318951aac
gdi32: Separate face creation from face insertion.
2012-03-27 13:43:53 +02:00
Huw Davies
2489c3285c
gdi32: Remove the loop over bitmap sizes. FreeType lists different sizes as separate faces.
...
Windows format bitmap fonts have been enumerated as separate faces
since FreeType 2.1.5, since we require 2.1.9 for bitmap support we can
safely drop this loop.
2012-03-27 13:43:50 +02:00
Huw Davies
8d50bb6711
gdi32: Add a helper to free a face object and fix a potential memory leak.
2012-03-27 13:43:46 +02:00
Huw Davies
b5115f77bc
gdi32: Add a helper to retrieve the fontsignature.
2012-03-27 13:43:42 +02:00
Huw Davies
45d79feaf5
gdi32: Add a helper to retrieve a bitmap font's internal leading.
2012-03-27 13:43:36 +02:00
Huw Davies
afae44da25
gdi32: Add a helper to retrieve the ntm flags.
2012-03-27 13:43:34 +02:00
Huw Davies
37eb386739
gdi32: Add a helper to retrieve the font version.
2012-03-27 13:43:31 +02:00
Huw Davies
e27a633b93
gdi32: Add a helper to create a family.
2012-03-27 13:43:29 +02:00
Huw Davies
7ad330deef
gdi32: Add a helper to retrieve the family pointer.
2012-03-27 13:43:26 +02:00
Huw Davies
c6af1d5416
gdi32: Add a helper to retrieve the family names and simplify the logic.
2012-03-27 13:43:24 +02:00
Huw Davies
18d19e7f18
gdi32: Remove unused variable.
2012-03-16 16:52:51 +01:00
Huw Davies
41fb856961
gdi32: Correctly propagate the enumproc's return value.
2012-03-14 17:33:54 +01:00
Kusanagi Kouichi
6a49adeee6
gdi32: find_face_from_filename() needs to take font replacements into account.
2012-03-14 17:28:05 +01:00
Kusanagi Kouichi
d77104b93d
gdi32: Remove unused parameters and code, and a useless wrapper function.
2012-03-13 10:38:04 +01:00
Kusanagi Kouichi
eab0257492
gdi32: Simplify font replacement loading.
2012-03-13 10:37:51 +01:00
Kusanagi Kouichi
4bb0e2d076
gdi32: Add a helper function to get face list from family.
2012-03-13 10:37:45 +01:00
Kusanagi Kouichi
fc03398cd5
gdi32: Add a helper function to create a full name from a family name and a style name.
2012-03-13 10:37:01 +01:00
Kusanagi Kouichi
d696d5fee8
gdi32: Move font signature of font link from Face to SYSTEM_LINKS.
2012-03-13 10:36:45 +01:00
Kusanagi Kouichi
e86519c9b3
gdi32: Add a helper function to find font link.
2012-03-13 10:36:19 +01:00
Alexandre Julliard
53c53126d5
gdi32: Fix rounding error for odd ellipse sizes in CreateRoundRectRgn.
2012-03-09 11:38:12 +01:00
Alexandre Julliard
78c3af9f18
gdi32: Fix missing increment of integer data in GetCharABCWidthsFloat.
2012-03-02 17:03:45 +01:00
Alexandre Julliard
fd40d65cfa
gdi32: Avoid using uninitialized value in DIB pattern enhmetafile record.
2012-02-24 17:04:06 +01:00
Alexandre Julliard
c65de04789
gdi32: Use 64-bit values when computing ellipses to avoid overflows.
2012-02-24 15:55:45 +01:00
Alexandre Julliard
556267bde4
gdi32: Avoid overflows for invalid coordinates in line clipping.
2012-02-22 11:28:33 +01:00
Alexandre Julliard
32057bf132
gdi32: Don't paint the text rectangle in transparent mode unless a rectangle is explicitly specified.
2012-02-21 17:20:48 +01:00
Kusanagi Kouichi
4dc04ae867
gdi32: Initialize font signature of "System" font link.
2012-02-21 15:01:03 +01:00
Alexandre Julliard
21498d6c11
gdi32: Paint everything in ExtFloodFill when the DIB doesn't have a clip region.
2012-02-19 20:34:27 +01:00
Alexander Kochetkov
86de76b9e1
gdi32: Fix text baseline calculation in compatible mode.
2012-02-16 18:51:55 +01:00
Alexandre Julliard
691c37ca9f
gdi32: Fix font orientation when mirroring in compatible mode.
...
Inspired by a patch from Alexander Kochetkov.
2012-02-16 18:51:55 +01:00
Kusanagi Kouichi
758796e704
gdi32: Add traces for skipped font replacements.
2012-02-15 16:27:11 +01:00
Kusanagi Kouichi
15a6aefb8f
gdi32: Use find_family_from_any_name to find a replacement family.
2012-02-15 16:27:11 +01:00
Aric Stewart
05a9d4ce94
gdi32: Rebuild the internal SystemLink every time.
2012-02-14 19:15:48 +01:00
Alexandre Julliard
b3ab012a42
gdi32: Don't clip to the visible rectangle for screen DCs.
2012-02-14 12:31:47 +01:00
Aric Stewart
85a71387da
gdi32: Load fonts from default Mac external font paths.
2012-02-09 11:58:48 -06:00
Akihiro Sagawa
39f748f083
gdi32/tests: Reorder tests to avoid side-effects.
2012-02-09 11:54:39 -06:00
Huw Davies
d3bfa44d53
gdi32: Intersect the background text box with the clip rectangle in device units.
2012-02-09 09:34:43 -06:00
Huw Davies
1eca24bd6b
gdi32: Rename a shadow variable.
2012-02-09 09:34:38 -06:00
Akihiro Sagawa
286854fb06
gdi32: Consider whether the logical font face is vertical when selecting.
2012-02-08 13:54:40 -06:00
Akihiro Sagawa
c683ad72b2
gdi32/tests: Add tests for East Asian font selection.
2012-02-08 13:54:33 -06:00
Aric Stewart
f83762e678
gdi32: Allow font replacements to be specified either in localized name or English name.
2012-02-08 10:53:40 -06:00
Akihiro Sagawa
d53dc01143
gdi32: Restore the vertical font flag from the cache.
2012-02-07 14:03:12 -06:00
Aric Stewart
e7a79b5565
gdi32: Keep our internal generated system links separate and append them to any user defined system links.
2012-02-07 09:35:50 -06:00
Aric Stewart
a8a2f87135
gdi32: In update_system_links if the font we are trying to link has already been substituted or localized we need to check against that name also.
2012-02-01 16:42:43 +01:00
Alistair Leslie-Hughes
c5235eeab0
gdi32: Add EnhMetafile PolyBezier, PolyBezierTo support.
2012-01-19 21:08:55 +01:00
Huw Davies
3dc4f259e9
gdi32: The clip region should stop the flooding.
2012-01-19 21:08:50 +01:00
Huw Davies
b2c3ca090f
gdi32/tests: Add tests for ExtFloodFill.
2012-01-18 16:27:45 +01:00
Huw Davies
d69868e464
gdi32: Implement ExtFloodFill.
2012-01-18 16:27:42 +01:00
Huw Davies
ff4045b110
gdi32: Use separate x and y parameters in the get_pixel primitive.
2012-01-18 16:27:39 +01:00
Alexandre Julliard
7e9d5a1771
gdi32: Negative destination sizes are allowed after coordinate mapping in GdiAlphaBlend.
2012-01-18 16:03:36 +01:00
Alexandre Julliard
f8fa169da0
gdi32: Store foreground/background color even when passed CLR_INVALID.
2012-01-12 15:53:07 +01:00
Alexandre Julliard
9ecc1e0702
gdi32: Simplify the CreateCompatibleBitmap implementation.
2012-01-12 15:53:04 +01:00
Alexandre Julliard
fbbf3ba408
gdi32: Get rid of the CreateDIBSection driver entry point.
2012-01-10 16:13:29 +01:00
Alexandre Julliard
71ea68b657
gdi32: Use the bitmap part of the DIBSECTION structure for the DDB object information.
2012-01-10 16:13:29 +01:00
Alexandre Julliard
e896af4065
gdi32: Always store a DIBSECTION structure in the bitmap object.
2012-01-10 16:13:29 +01:00
Alexandre Julliard
8a9be0a30b
gdi32: Get rid of the get_bitmap_funcs function.
...
DIBs no longer use the display driver functions.
2012-01-10 16:13:28 +01:00
Alexandre Julliard
66774baba3
gdi32: Use the bpp info from the bitmap structure now that it's identical to the DIB one.
2012-01-10 16:13:28 +01:00
Alexandre Julliard
8946a33c4b
gdi32: Simplify CreateDIBSection and avoid using the reference DC if not needed.
2012-01-10 16:13:27 +01:00
Alexandre Julliard
a51b2c8bd5
gdi32: Add a separate set of GDI object functions for DIBs.
2012-01-10 16:13:27 +01:00
Kusanagi Kouichi
fecb1d8b6f
gdi32: GetGlyphIndices doesn't substitute glyph.
2012-01-10 11:22:41 +01:00
Alexandre Julliard
62eaaa796b
gdi32/tests: Remove device capabilities test that fails on XP.
2012-01-09 16:27:41 +01:00
Huw Davies
7994f2c03b
gdi32: Don't create the outline region twice.
2012-01-09 15:23:17 +01:00
Alexandre Julliard
9c112996d0
gdi32: Stop forwarding object selection calls to x11drv.
2012-01-09 12:14:34 +01:00
Alexandre Julliard
dc1aeeb2f8
gdi32: Get rid of the SetDIBColorTable driver entry point.
2012-01-07 13:27:08 +01:00
Alexandre Julliard
867be0e3e3
gdi32: Add an empty ExtEscape DIB driver entry point.
2012-01-06 19:24:12 +01:00
Alexandre Julliard
56331e2a9a
gdi32: Don't allow Get/SetDeviceGammaRamp on DIBs or memory DCs.
2012-01-06 19:24:12 +01:00
Alexandre Julliard
bf718448f3
gdi32: Add a stub for the ExtFloodFill entry point.
2012-01-06 19:24:11 +01:00
Alexandre Julliard
ff31a448b3
gdi32: Implement Arc, ArcTo, Chord, and Pie, using line segments for now.
2012-01-06 19:24:02 +01:00
Alexandre Julliard
92d5b41599
gdi32: Add a helper function for computing the device rect for PS_INSIDEFRAME.
2012-01-06 19:22:22 +01:00
Alexandre Julliard
5ff285629e
gdi32: Implement Ellipse and RoundRect, using line segments for now.
2012-01-06 19:22:12 +01:00
Alexandre Julliard
3e51dd7515
gdi32: Use a better algorithm for CreateRoundRectRgn.
2012-01-06 12:53:20 +01:00
Alexandre Julliard
94ffc49e02
gdi32: Draw rectangles in the order specified by the current arc direction.
2012-01-05 20:54:07 +01:00
Alexandre Julliard
4b524f91e2
gdi32/tests: Add some tests for brushed and dashed wide pens.
2012-01-04 18:17:05 +01:00
Alexandre Julliard
d858041a19
gdi32: Get rid of the pen deferring support, all pen styles are implemented now.
2012-01-04 16:53:17 +01:00
Alexandre Julliard
c82d2a034f
gdi32: Implement dashed wide lines.
2012-01-04 16:06:21 +01:00
Alexandre Julliard
bc5428600b
gdi32: Add a helper function for drawing multiple line segments.
2012-01-04 16:06:01 +01:00
Alexandre Julliard
a59c53b312
gdi32: Add a helper function for drawing a wide line segment.
2012-01-04 15:50:31 +01:00
Alexandre Julliard
8b1bab524b
gdi32: Skip empty segments at the beginning and end of a line to make sure the caps are correct.
2012-01-04 15:10:10 +01:00
Alexandre Julliard
5f2371c229
gdi32: Only create the round cap region once per call.
2012-01-04 15:02:05 +01:00
Alexandre Julliard
618425ac4c
gdi32: Fix skipping of zero-length dashes.
2012-01-04 14:57:52 +01:00
Marcus Meissner
15162ddf3c
gdi32: Check return value of REGION_UnionRectWithRegion (Coverity).
2012-01-03 12:37:57 +01:00
Alexandre Julliard
5721cbf0e8
gdi32: Add stubs for the OpenGL entry points in the DIB driver.
2012-01-03 12:37:16 +01:00
Alexandre Julliard
ccfbcfaf53
gdi32: Calculate the image size in GradientFill only once we have the correct bit count.
2012-01-02 21:46:46 +01:00
Alexandre Julliard
2c9c9f78fb
gdi32: Don't bother computing interior regions when the brush is null.
2011-12-30 12:53:35 +01:00
Alexandre Julliard
488bf107a9
gdi32: Implement brushed pens.
2011-12-30 11:04:35 +01:00
Alexandre Julliard
4e03247427
gdi32: Define a structure to make the brush state independent from the physdev.
2011-12-30 11:04:33 +01:00
Alexandre Julliard
cc9836bda0
gdi32: Pass a brush_pattern structure to the SelectPen entry point for brushed pens.
2011-12-30 11:04:29 +01:00
Alexandre Julliard
f85bb35280
gdi32: Pass a brush_pattern structure to the SelectBrush entry point.
2011-12-30 11:04:26 +01:00
Alexandre Julliard
a1fdd5856f
gdi32: Store the pattern brush information for geometric pens.
2011-12-30 11:04:23 +01:00
Alexandre Julliard
ee89ce2982
gdi32: Add sanity checks for brush hatch styles.
2011-12-30 11:04:16 +01:00
Alexandre Julliard
8bf48557ef
gdi32: Add a structure to store all the extra information needed for a pattern brush.
2011-12-29 19:20:55 +01:00
Alexandre Julliard
5a67227078
gdi32/tests: Get rid of Win9x compatibility in the pen tests.
2011-12-29 19:20:50 +01:00
Alexandre Julliard
63a9217539
gdi32: Add checks for invalid color usage values.
2011-12-29 16:18:39 +01:00
Alexandre Julliard
c1c8c92875
gdi32: Add helpers to paint a region with the brush or pen.
2011-12-29 10:10:45 +01:00
Alexandre Julliard
579afe5cc6
gdi32: Implement PolyPolygon in the DIB driver.
2011-12-29 09:57:58 +01:00
Alexandre Julliard
f5549ae1d0
gdi32: Use a region to render geometric and wide pens in LineTo.
2011-12-29 09:57:41 +01:00
Alexandre Julliard
da8ae11300
gdi32: Use a region to render geometric and wide pens in Rectangle.
2011-12-29 09:53:25 +01:00
Alexandre Julliard
64ed56366c
gdi32: Use a region to render geometric and wide pens in PolyPolyline.
2011-12-29 00:02:24 +01:00
Alexandre Julliard
9ee690c984
gdi32: Implement returning a region for 1-pixel wide dashed pen lines.
2011-12-28 23:03:03 +01:00
Alexandre Julliard
3188c30229
gdi32: Implement returning a region for 1-pixel wide solid pen lines.
2011-12-28 23:02:42 +01:00
Alexandre Julliard
0429d9181f
gdi32: Add support for updating a region from the pen backend functions instead of painting directly.
2011-12-28 23:02:10 +01:00
Alexandre Julliard
f155db574f
gdi32: Add support for 1-pixel wide PS_USERSTYLE pens.
2011-12-28 17:42:32 +01:00
Alexandre Julliard
305be80e2f
gdi32: Add support for PS_ALTERNATE pens.
2011-12-28 17:42:27 +01:00
Alexandre Julliard
e364809a90
gdi32: Add support for 1-pixel wide geometric dashed pens.
2011-12-28 17:42:14 +01:00
Alexandre Julliard
bbd7f4e0e3
gdi32: Fix handling of invalid pen styles.
2011-12-28 16:33:35 +01:00
Alexandre Julliard
881f635ce9
gdi32: Extended pens are always transparent.
2011-12-28 16:33:31 +01:00
Alexandre Julliard
5f03c6c81b
gdi32: Wide cosmetic pens don't support dashes.
2011-12-28 13:53:15 +01:00
Alexandre Julliard
ab63eb5c40
gdi32: Fix the scaling of the width of cosmetic pens.
2011-12-28 13:53:12 +01:00
Alexandre Julliard
9b8d920cb7
gdi32: Pass the clip region to the brush_rect helper and add a similar helper for pens.
2011-12-28 11:28:21 +01:00
Alexandre Julliard
18c20964e1
gdi32: Add support for PS_INSIDEFRAME pens when drawing rectangles.
2011-12-28 11:17:41 +01:00
Alexandre Julliard
c861284a02
gdi32: Add a helper function to add a rectangle to a region.
2011-12-28 11:04:30 +01:00
Alexandre Julliard
0c840f66ed
gdi32: Compute the correct rectangle interior when using wide pens.
2011-12-27 20:53:35 +01:00
Akihiro Sagawa
70c2222180
gdi32: Avoid making a DBCS character in range.
2011-12-27 16:55:09 +01:00
Alexandre Julliard
a80eafe8d7
gdi32: Re-create the brush bits only when the ROP has really changed.
2011-12-27 16:55:02 +01:00
Alexandre Julliard
8b3271c3b0
gdi32: Avoid making a copy of the device clipping region in the DIB driver.
2011-12-27 15:48:29 +01:00
Alexandre Julliard
56373bc491
gdi32: Use the get_clipped_rects helper in the blitting functions.
2011-12-27 15:41:21 +01:00
Alexandre Julliard
d0f110e2a9
gdi32: Use the get_clipped_rects helper in the pen functions.
2011-12-27 15:00:00 +01:00
Alexandre Julliard
63ebfc591e
gdi32: Use the get_clipped_rects helper in the text functions.
2011-12-27 14:58:52 +01:00
Alexandre Julliard
b761d0e1c6
gdi32: Add a helper function to compute the list of rectangles to paint after clipping.
2011-12-27 14:57:23 +01:00
Alexandre Julliard
4333b7d370
gdi32/tests: Add tests for PALETTEINDEX colors.
2011-12-23 13:43:49 +01:00
Alexandre Julliard
73b9c86384
gdi32: Always use proper RGB colors for monochrome DDB pattern brushes.
2011-12-22 21:18:38 +01:00
Alexandre Julliard
8f929ae04d
gdi32: Add a common helper for computing pen and brush masks.
2011-12-22 20:10:31 +01:00
Alexandre Julliard
56532d0cf7
gdi32: Recompute the foreground masks on every use to support PALETTEINDEX colors.
2011-12-22 19:50:29 +01:00
Alexandre Julliard
e166ec0bb0
gdi32: Recompute the background masks on every use to support PALETTEINDEX colors.
2011-12-22 19:50:07 +01:00
Alexandre Julliard
9237638c0e
gdi32: Recompute the pen masks on every use to support PALETTEINDEX colors.
2011-12-22 19:49:23 +01:00
Alexandre Julliard
43373c29ef
gdi32: Recompute the brush masks on every use to support PALETTEINDEX colors.
2011-12-22 19:47:40 +01:00
Huw Davies
8caa0a05bd
gdi32/tests: Add tests for geometric solid pens.
2011-12-22 17:19:19 +01:00
Huw Davies
7c2351566a
gdi32: Add support for geometric solid pens.
2011-12-22 17:19:19 +01:00
Alexandre Julliard
7f3a7ae585
gdi32: Fix handling of COLORREFs with illegal values for the high byte.
2011-12-22 17:19:13 +01:00
Kusanagi Kouichi
53385314d0
gdi32: Substitute glyph for vertical font only.
2011-12-20 20:06:33 +01:00
Kusanagi Kouichi
69a26387b3
gdi32: Add vertical fonts to font list.
2011-12-20 20:06:32 +01:00
Kusanagi Kouichi
65f809248f
gdi32: Split AddFontToList into two functions.
2011-12-20 20:06:32 +01:00
Kusanagi Kouichi
4dfe084bba
gdi32: Merge two ifs.
2011-12-20 20:06:31 +01:00
Kusanagi Kouichi
6c268cf1c5
gdi32: Use find_family_from_name and LIST_FOR_EACH instead of open-coding them.
2011-12-20 20:06:31 +01:00
Kusanagi Kouichi
5bdbf6c681
gdi32: Add a helper function to convert a string from A to W.
2011-12-20 20:06:30 +01:00
Alexandre Julliard
a585659e31
gdi32: Remove support for deferring brush calls to X11, all brush types are supported now.
2011-12-19 20:15:42 +01:00
Francois Gouget
2ae10acb61
gdi32: Avoid hardcoding the Unicode string literal lengths.
2011-12-16 17:40:41 +01:00
Alexandre Julliard
19fe3f0c77
gdi32/tests: Add tests for device capabilities on memory DCs.
2011-12-16 12:09:02 +01:00
Alexandre Julliard
6752d3478f
gdi32/tests: Add some tests for behavior of 32-bit DDBs.
2011-12-14 17:54:45 +01:00
Kusanagi Kouichi
b5446ddb45
gdi32: Don't remove leading '@' from face name.
2011-12-13 18:59:12 +01:00
Kusanagi Kouichi
bf8a100639
gdi32: Don't use preferred family name.
2011-12-13 18:59:11 +01:00
Kusanagi Kouichi
ad58ca235c
gdi32/tests: Add tests for vertical font.
2011-12-13 18:59:10 +01:00
Alexandre Julliard
38766d4d19
gdi32/tests: Fix some test failures on old Windows versions.
2011-12-13 14:00:20 +01:00
Alexandre Julliard
9f410413a6
gdi32: Implement GetPixel in the null driver using GetImage.
2011-12-13 14:00:05 +01:00
Alexandre Julliard
0c194895a2
gdi32: Remove some color table size checks, we use full-size color tables now.
2011-12-12 20:52:59 +01:00
Alexandre Julliard
49ae736022
gdi32: Implement GetNearestColor in the DIB driver.
2011-12-12 20:20:06 +01:00
Alexandre Julliard
cae4ef81e6
gdi32: init_dib_info() can no longer fail, and no longer requires freeing.
2011-12-12 20:02:22 +01:00
Alexandre Julliard
d357392b8b
gdi32: Remove support for private color maps.
2011-12-12 20:02:17 +01:00
Alexandre Julliard
70d8341a67
gdi32: Pass the correct depth to PutImage for SetBitmapBits on a DIB.
2011-12-12 15:50:38 +01:00
Alexandre Julliard
f85a28faf6
gdi32/tests: Add tests for 1-bpp DDB pattern brushes.
2011-12-12 15:50:38 +01:00
Alexandre Julliard
65a2c885f1
gdi32: Don't create a default color table for pattern brushes, use the DC colors instead.
2011-12-12 15:50:37 +01:00
Alexandre Julliard
d5fe87e2e8
gdi32: Select the pattern brush only when first used.
2011-12-12 15:50:37 +01:00
Alexandre Julliard
d353c95d47
gdi32: Add a flag to request a default color table from init_dib_info.
2011-12-12 15:50:33 +01:00
Alexandre Julliard
c5895ead6a
gdi32: Use the default DIB color table to create system and halftone palettes.
2011-12-12 11:30:50 +01:00
Alexandre Julliard
3a9cabb8c4
gdi32: Store the default color tables as static data.
2011-12-12 11:21:52 +01:00
Alexandre Julliard
27eb63b082
gdi32: GetCharABCWidthsFloatW must succeed with non-TrueType fonts.
2011-12-12 11:14:25 +01:00
Alexandre Julliard
2e42ab1527
gdi32/tests: Fix some test failures on Windows.
2011-12-10 18:08:35 +01:00
Alexandre Julliard
8db263d2eb
gdi32: Simplify computation of the DIB header size for internal BITMAPINFO structures.
2011-12-10 13:35:59 +01:00
Alexandre Julliard
82e1a4616c
gdi32: Make sure that biSizeImage always contains the correct size in internal BITMAPINFO structures.
2011-12-10 13:35:59 +01:00
Alexandre Julliard
25e2fae2a8
gdi32: Always use biClrUsed for the number of colors of internal BITMAPINFO structures.
2011-12-10 13:35:42 +01:00
Huw Davies
ac7e9f6dcc
gdi32/tests: Add some tests for wide pens.
2011-12-09 21:15:31 +01:00
Huw Davies
e155a8054b
gdi32: Add support for wide cosmetic pens.
2011-12-09 21:15:30 +01:00
Alexandre Julliard
98670510f4
gdi32/tests: Add tests for DIB_PAL_COLORS and DIB palettes with missing entries.
2011-12-09 21:15:23 +01:00
Alexandre Julliard
494bfa866a
gdi32: Remove the nb_colors fields in the bitmap object, we always allocate a full size color table.
2011-12-09 21:15:22 +01:00
Alexandre Julliard
c441ebc21d
gdi32: Fix handling of DIB_PAL_COLORS in the various DIB functions.
2011-12-09 21:15:22 +01:00
Alexandre Julliard
647a4d5844
gdi32: Always allocate a full-size color table when creating a DIB section.
2011-12-09 21:15:16 +01:00
Alexandre Julliard
91d19b4b17
gdi32: Add a helper to build a color table from the DIB_PAL_COLORS bitmap info.
2011-12-08 21:31:59 +01:00
Alexandre Julliard
71199eab77
gdi32: Don't make a copy of the DIB color table when selecting it into a DC.
2011-12-08 20:00:55 +01:00
Alexandre Julliard
910fb48291
gdi32: Use PutImage directly to set the initial bitmap bits.
2011-12-08 19:58:47 +01:00
Alexandre Julliard
df9e0ccf5c
gdi32: Use the convert_bits helper function in SetDIBits and SetDIBitsToDevice.
2011-12-08 19:53:44 +01:00
Alexandre Julliard
72fae39ce0
gdi32: Add missing check for empty visible rects in the non-stretching case.
2011-12-08 18:00:00 +01:00
Alexandre Julliard
5b17ba887b
gdi32: Rename the CLIPPING_UpdateGCRegion function.
...
We haven't used a GC here for a long time now.
2011-12-07 17:49:54 +01:00
Alexandre Julliard
b9f09abdcc
gdi32: Don't store the metaclip region, recompute it as needed.
2011-12-07 17:49:47 +01:00
Alexandre Julliard
fb37752f53
gdi32: Only store a total visible region when it's a combination of other regions.
2011-12-07 17:48:29 +01:00
Alexandre Julliard
ddfe35867d
gdi32: Only create the DC visible region when necessary.
...
Most DCs can simply use the visible rectangle instead.
2011-12-07 16:50:57 +01:00
Alexandre Julliard
1f15ffa1e6
gdi32: Make sure DCs are fully zero-initialized.
2011-12-07 15:53:54 +01:00
Francois Gouget
22cb047ed4
gdi32: Make init_dib_info() static.
2011-12-06 17:53:15 +01:00
Alexandre Julliard
7534d47b1b
gdi32: Pass the total visible region in the SetDeviceClipping driver entry point.
2011-12-06 15:51:00 +01:00
Alexandre Julliard
5a1a6e935a
gdi32: Maintain a region inside gdi32 to keep track of the total visible region.
2011-12-06 15:50:59 +01:00
Alexandre Julliard
1e2dd7cad8
gdi32: Add a helper function to clip a rectangle to the DC visible rect.
2011-12-06 15:50:59 +01:00
Alexandre Julliard
25e300dcad
gdi32: Add a null driver implementation for Polyline and Polygon.
2011-12-05 22:29:16 +01:00
Alexandre Julliard
360d4bc548
gdi32: Use the DIB engine and PutImage for the null driver triangular gradient implementation.
2011-12-05 17:19:32 +01:00
Alexandre Julliard
8e8cdc78e6
gdi32: Add more parameter checks in GdiGradientFill.
2011-12-05 16:36:08 +01:00
Alexandre Julliard
7ea59c107f
gdi32: Use dithering also for 1-bpp gradients.
2011-12-05 16:36:08 +01:00
Alexandre Julliard
59f347b75c
gdi32/tests: Add more gradient tests.
2011-12-05 16:36:07 +01:00
Alexandre Julliard
743b37df3d
gdi32: Implement triangular gradients in the DIB engine.
2011-12-05 16:36:03 +01:00
Huw Davies
4ce3af3fad
gdi32: Add support for checking the font's gasp flags.
2011-12-02 17:25:54 +01:00
Alexandre Julliard
c5bddce3aa
gdi32: Add some parameter checks in GdiGradientFill.
2011-12-02 14:00:18 +01:00
Alexandre Julliard
4c6807199e
gdi32: Use the DIB engine and PutImage for the null driver rectangular gradient implementation.
2011-11-30 12:59:11 +01:00
Alexandre Julliard
f2ec760a80
gdi32/tests: Add tests for rectangular gradients in DIBs.
2011-11-29 15:12:31 +01:00
Alexandre Julliard
a135e47167
gdi32: Don't set gradient alpha channel for 8888 bitmaps created with bitfields.
2011-11-29 15:12:28 +01:00
Alexandre Julliard
a869fc47bd
gdi32: Implement 8-bpp and 4-bpp gradient dithering.
2011-11-29 15:12:26 +01:00
Alexandre Julliard
ce2f542267
gdi32: Implement 16-bpp gradient dithering.
2011-11-29 15:12:23 +01:00
Alexandre Julliard
e19a362407
gdi32: Implement rectangular gradients in the DIB engine.
2011-11-29 15:12:20 +01:00
Huw Davies
0ab46cd5e9
gdi32: Avoid reading past the end of the indices array.
...
Spotted by Marcus Meissner.
2011-11-24 17:17:07 +01:00
Huw Davies
224e51fcf5
gdi32: Add an option to allow pen_lines to draw a closed figure.
2011-11-24 17:17:04 +01:00
Alexandre Julliard
79691e7afa
gdi32: Specify an initial allocation size for paths to avoid some reallocations.
2011-11-23 14:00:22 +01:00
Alexandre Julliard
c2491ccc2d
gdi32: Get rid of the Hungarian line noise in the gdi_path structure.
2011-11-23 13:37:14 +01:00
Alexandre Julliard
aefb608752
gdi32: Get rid of the GdiPath typedef.
2011-11-23 13:32:22 +01:00
Alexandre Julliard
ccc3b9caae
gdi32: Get rid of the no longer needed path states.
2011-11-23 13:25:31 +01:00
Alexandre Julliard
2201d08834
gdi32: Only store the path in the DC when it's closed.
...
Open paths are stored only in the path physdev.
2011-11-23 13:24:12 +01:00
Alexandre Julliard
a214a3c3da
gdi32: Store a pointer to the path in the DC and make the path structure opaque.
2011-11-22 12:07:24 +01:00
Alexandre Julliard
ddc9860a42
gdi32: Return a new path from PATH_WidenPath instead of replacing the DC path.
2011-11-22 12:07:18 +01:00
Alexandre Julliard
f388827c8d
gdi32: Return a new path from PATH_FlattenPath instead of replacing the DC path.
2011-11-22 12:05:35 +01:00
Alexandre Julliard
ac1643caec
gdi32: Return the region directly from PATH_PathToRegion.
2011-11-22 11:31:27 +01:00
Alexandre Julliard
7698b636e7
gdi32: Add helper functions for allocating and freeing paths.
2011-11-22 11:25:21 +01:00
Alexandre Julliard
26b1bfa52b
gdi32: Use reallocs when growing a path instead of doing it by hand.
2011-11-22 11:23:53 +01:00
Alexandre Julliard
670f25cc8f
gdi32: Add support for anti-aliasing in the null driver text output fallback.
2011-11-21 12:15:53 +01:00
Alexandre Julliard
1b63d5a610
gdi32: Add a helper function to determine anti-aliasing flags.
2011-11-21 11:52:30 +01:00
Alexandre Julliard
5282ffadad
gdi32: Add a null driver fallback implementation for non-antialiased text output.
2011-11-21 11:52:26 +01:00
Huw Davies
04396063c8
gdi32: Add solid_line primitives.
2011-11-21 11:51:47 +01:00
Huw Davies
f168f838f1
gdi32: Simplify the Bresenham line drawing.
2011-11-21 11:51:23 +01:00
Alexandre Julliard
ffaf0c4966
gdi32: Don't mark a local variable static.
2011-11-17 17:34:14 +01:00
Huw Davies
666f83bc0f
gdi32: Add a helper to retrieve the octant bias.
2011-11-16 17:00:23 +01:00
Huw Davies
48b1e66309
gdi32: Use an array of masks to simplify the bitmap conversion.
2011-11-16 17:00:19 +01:00
Huw Davies
6c9c9107d4
gdi32: Return valid anti-alias format bitmaps if the glyph is a monochrome bitmap.
2011-11-16 17:00:15 +01:00
Huw Davies
f3fab96393
gdi32: Add a helper to return the maximum level to use for a given anti-aliasing format.
2011-11-16 17:00:10 +01:00
Huw Davies
d43d17e248
gdi32/tests: Add tests for text rendering.
2011-11-14 15:25:28 +01:00
Huw Davies
e9612c1af0
gdi32: Add support for drawing text in the dib driver.
2011-11-14 15:25:28 +01:00
Huw Davies
5c6f630b98
gdi32: Add draw_glyph primitives.
2011-11-14 15:25:28 +01:00