Commit Graph

63 Commits

Author SHA1 Message Date
Dan Hipschman f904723813 gdi32: Implement GetTextExtentPoint in terms of GetTextExtentExPoint
(not vice versa) for efficiency (required adding the Ex functionality
to drivers).
2006-07-12 13:34:36 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Dmitry Timoshkov 434a60ba1d gdi: A better workaround for extended user style pens. 2006-03-09 13:11:14 +01:00
Dmitry Timoshkov eb893bdea3 gdi: Add support for creating extended pens. 2006-01-30 18:17:07 +01:00
Michael Kaufmann 2fed6479d8 gdi: Fix the EMF bounding box calculation. 2006-01-25 13:14:27 +01:00
Dmitry Timoshkov e41ddd052a First draft of ExtTextOut on an open path. 2005-11-07 16:40:20 +00:00
Huw Davies 0d23ac479b Fix handling of relative state indices in RestoreDC.
Fix return value of SaveDC when writing to an emf.
Before writing the EMR_EOF record we should ensure that we clear the
state stack.
2005-10-31 10:05:52 +00:00
Phil Krylov 30d6d5dc92 Fixed SetTextAlign(), SetBkMode(), SetROP2(), SetPolyFillMode(), and
SetStretchBltMode() to assume that the corresponding DC driver
functions return only a BOOL success flag, and therefore a proper
return value should be generated by the main function. Fixed
EMFDRV_StretchDIBits() to return a proper value (like
MFDRV_StretchDIBits already does). Added comments about other cases of
improper return values.
2005-10-27 18:28:43 +00:00
Alexandre Julliard f4bf9dee3c LOGBRUSH.lbHatch must be a ULONG_PTR since it can contain a handle. 2005-09-12 11:19:56 +00:00
Huw Davies 3433676fd7 Move a bunch of common code from the drivers into gdi. 2005-08-23 09:38:58 +00:00
Mike McCormack e6d4bcd7ae Check that GetObject is successful. 2005-05-11 12:02:16 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Mike McCormack 895d1b7160 Output EMR_POLYGON16 records when possible. 2004-12-21 14:49:19 +00:00
Francois Gouget 6fb1a20020 Assorted spelling fixes. 2004-12-20 19:27:06 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Jon Griffiths dd89491edb Support mono pattern brushes in EMF's. 2004-11-22 18:22:20 +00:00
Hans Leidekker fe442b21f7 Fix signed/unsigned comparison warnings. 2004-09-08 01:23:57 +00:00
Huw Davies dd5b23fddb Implement AlphaBlend using the XRENDER extension. 2004-08-02 18:54:54 +00:00
Dmitry Timoshkov ac42c45745 Do not allow creation of not aligned EMF records by GDI code. 2004-06-18 19:33:41 +00:00
Mike McCormack d00141aae8 Write EMRPOLYLINE16 if points fit into a SHORT. 2004-03-29 23:04:32 +00:00
Dmitry Timoshkov 90c42fed6b Eliminate some unnecessary direct accesses to DC internals from EMF
driver.
2004-03-11 00:37:46 +00:00
Alexandre Julliard 05df86a38f Moved more GDI definitions to gdi_private.h.
Get rid of bitmap.h and palette.h.
2004-03-04 20:41:12 +00:00
Alexandre Julliard ebd24807fe Pass the gdiFont object to the SelectFont driver entry point so that
we don't need to look into the DC structure for it.
2004-03-04 04:05:04 +00:00
Alexandre Julliard 8d18b2a518 Pass the breakExtra value in the ExtTextOut driver call, since there
is no function to retrieve it from the HDC.
2004-03-04 01:42:57 +00:00
Alexandre Julliard 6ec42c0c3b Moved a bunch of definitions from gdi.h into a new gdi_private.h to
make sure we don't use them outside of gdi32.
2004-01-15 00:35:38 +00:00
Huw Davies 9e8ce63e2e Let enhmetafiles reuse gdi handles. This works by a dc 'registering'
with an object that it wants to know when the object is deleted. Until
the dc gets delete notification it's free to assume that it doesn't
need to write the create record for that object again.  Upon receiving
the delete notification it writes the DeleteObject record. Windows
seems to do it this way too.
2003-11-25 05:03:09 +00:00
Ulrich Czekalla 16ff6689df Implemented SetDCPenColor and SetDCBrushColor. 2003-11-05 01:43:57 +00:00
Dave Belanger 46329e83f0 Fix EMF driver UpdateBBox routine. The EMF bounding box must be stored
in device coordinates in the metafile.
2003-10-22 03:02:08 +00:00
Dave Belanger 53f2e61e37 Implemented BitBlt, StretchBlt and SetDIBitsToDevice EMF driver
callbacks.
Cleaned up redundant code in EMFDRV_StretchDIBits.
2003-10-15 02:33:15 +00:00
Dave Belanger 3da1e24643 Implementation of SetTextJustication EMF driver callback. 2003-10-10 00:06:59 +00:00
Dave Belanger 5735c58eb1 Improved the bounding box calculation for the EMF driver ExtTextOut
metarecord. It takes the text alignment into account.
2003-10-09 19:44:35 +00:00
Dave Belanger 36a6c740c4 Implementation of EMF driver OffsetViewportOrg and OffsetWindowOrg
callbacks using the EMR_SETVIEWPORTORGEX and EMR_SETWINDOWORGEX
metarecords respectively.
2003-10-09 04:42:45 +00:00
Dave Belanger 633e379eb9 Implementation of SetPixel metarecord. 2003-10-08 22:34:15 +00:00
Dave Belanger a7bbf47f1b Avoid excessive heap memory reallocation when generating EMF
metarecords in memory.
2003-10-08 22:33:35 +00:00
Dave Belanger d1fa4b2d73 Spit out EMR_RESTOREDC metarecords with -1 as argument as long as we
don't get to the saved state we want.
2003-10-07 03:32:28 +00:00
Dave Belanger 325f646fdc Implemented the SetArcDirection metarecord in EMF driver. 2003-10-04 03:08:25 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Mike McCormack 10c3764058 Record SetWorldTransform and ModifyWorldTransform in enhanced
metafiles.
2003-06-23 19:46:56 +00:00
Mike McCormack 399967c10d Implemented GdiComment for enhanced metafiles. 2003-05-21 18:28:49 +00:00
Huw Davies cc5f3cd9b8 Implemented a few more device caps. 2003-05-19 21:51:44 +00:00
Mike McCormack 3b5708640c Implemented StretchDIBits in the EMF code. 2003-05-19 18:49:52 +00:00
Dmitry Timoshkov 7faae4c5d5 Fixed some issues in EMFDRV_ExtTextOut. 2003-05-19 18:48:37 +00:00
Alexandre Julliard e1147baa00 Use a different magic for memory DCs and get rid of the DC_MEMORY
flag.
2003-05-13 23:56:12 +00:00
Tony Lambregts 361e691961 Janitorial. Get rid of W->A call. 2003-03-07 23:08:59 +00:00
Alexandre Julliard 547cdc2b02 Made gdi compile with -DSTRICT. 2002-11-22 22:16:53 +00:00
Michael Stefaniuc 28a632a830 Some -DSTRICT fixes. 2002-11-21 21:50:04 +00:00
Patrik Stridvall 9aab47ed24 MSVC compatibility fixes. 2002-08-28 23:42:34 +00:00
Huw D M Davies 3d10c1fc6e Mapping mode functions should change dc settings when dc is an enhmf. 2002-08-17 18:32:12 +00:00
Huw D M Davies 908a2abe10 Implement simple ExtTextOut for enhmfdrv. 2002-08-17 01:36:55 +00:00
Mike McCormack 368fab1432 Set cbBits in the EMRCREATEDIBPATTERNBRUSHPT structure when writing an
EMF record.
2002-08-17 00:26:57 +00:00