Commit Graph

632 Commits

Author SHA1 Message Date
Huw Davies 2d00b08abd Check for the existence of the driver CreateDIBSection before calling
it.
2003-11-14 03:30:18 +00:00
Aric Stewart a33950456d Convert lpnFit back to multibyte in GetTextExtentExPointA. 2003-11-13 20:51:30 +00:00
Aric Stewart f0e20a6c16 An app depends on a NULL return from CreateDIBPatternBrushPt if data
is NULL.
2003-11-13 20:49:54 +00:00
Huw Davies 352b8bc9e8 Make sure we create a polychrome bitmap from the dib. CreateDIBitmap
doesn't do this when the dib is 1bpp and has a black/white colour
table.  In such cases this resulted in a monochrome bitmap being
StretchBlt'ed which is clearly incorrect since we then start using
text and bkgnd colours.
2003-11-12 22:42:26 +00:00
Huw Davies 39f604b04f If the buffer passed to GetOutlineTextMetrics isn't big enough then
Windows fills it upto the supplied size rather than returning an
error.
2003-11-11 20:39:54 +00:00
Huw Davies 47e9ad4dce PatBlt()s get recorded as EMR_BITBLT records with offBmiSrc == 0, so
ensure that we pick these out in playback.
EMR_STRETCHBLT should behave like EMR_BITBLT if there are no bits
(ie. it's a PalBlt).
Set the text and bkgnd colour to black and white respectively before
enumerating an emf.
Print out the record names to make debugging easier.
Add a few TRACE()s.
2003-11-11 00:43:03 +00:00
Huw Davies 9959aca826 GetTextExtentPoint should include an inter character spacing set by
SetTextCharacterExtra.
2003-11-11 00:28:19 +00:00
Huw Davies b0c790c691 Only reselect the font if the transformation has actually changed. 2003-11-11 00:27:48 +00:00
Huw Davies d7a9d4bd2e CreateDIBSection ignores the supplied values of biClrUsed and
biClrImportant and calculates them from biBitCount.
2003-11-11 00:27:10 +00:00
Vincent Béron bd699e5edc Implemented GetDCPenColor and GetDCBrushColor. 2003-11-05 23:25:37 +00:00
Ulrich Czekalla 16ff6689df Implemented SetDCPenColor and SetDCBrushColor. 2003-11-05 01:43:57 +00:00
Dave Belanger 3156df8539 Get Wine to behave like Windows does when Bold and/or Italic is
specified in the typeface name argument to CreateFont.
2003-10-15 03:32:31 +00:00
Dave Belanger aadf9efb86 In CreateDIBitmap, the fact that the bits init flag is set or not
doesn't have anything to do with the color state of the DIB.
2003-10-15 02:32:00 +00:00
Dave Belanger 4db092c0eb Improvement on the code that deals with setting the color map in
GetDIBits.
2003-10-11 05:23:45 +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
Dave Belanger 549e247844 Implementation of SelectPalette and RealizePalette in the metafile
driver.
2003-08-30 00:15:12 +00:00
Alexandre Julliard 864ca06832 winnls.h must not include winbase.h. 2003-08-20 18:22:31 +00:00
Francois Gouget 47b6d0af59 Spelling and case fixes. 2003-08-18 20:11:29 +00:00
Dmitry Timoshkov 0a26343bfb Convert initData as well. 2003-08-13 19:35:52 +00:00
Alexandre Julliard 19b6a49845 Allocate DebugInfo field for all critical sections (based on a patch
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
2003-08-12 23:50:54 +00:00
Dmitry Timoshkov 3a910c7d1f Convert CreateDC to unicode in the driver interface. 2003-08-12 20:42:18 +00:00
Dmitry Timoshkov d098f55d4b Use same formula to convert from device to logical units as everywhere
else.
2003-08-05 19:17:40 +00:00
Dmitry Timoshkov 511577daf5 Correctly truncate tmFirstChar, tmLastChar, tmBreakChar at 255 in the
process of W->A conversion.
2003-08-05 18:26:09 +00:00
Mike McCormack 369116d911 When GetObject is called with a NULL pointer, return the object's
size.
2003-07-26 20:39:46 +00:00
Francois Gouget 14a5d168e9 Fixed some common spelling errors. 2003-07-02 04:37:26 +00:00
Shachar Shemesh 362e72f959 Don't call the reordering function if the string length is 0. This
eliminates a noisy FIXME about ICU returning an incorrect error code.
2003-07-02 00:36:37 +00:00
Shachar Shemesh 409374d914 Implementation of the reordering algorithm by calling ICU's reordering
functions.
2003-06-27 20:47:16 +00:00
Huw Davies c23f8578c3 Don't enable client side fonts unless we have at least one non-symbol
font installed - this avoids a nasty Wingdings only scenario.
Add the ability to perform font replacements, this essentially lets
you give a second name to a font family so that familyA gets
enumerated as familyB too.
If we encounter two copies of the same font then use the one with the
larger version number.

Dmitry Timoshkov <dmitry@codeweavers.com>
Move GetTextCharsetInfo implementation to the font driver.
2003-06-23 20:51:06 +00:00
Mike McCormack 10c3764058 Record SetWorldTransform and ModifyWorldTransform in enhanced
metafiles.
2003-06-23 19:46:56 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Ingmar Thiemann 4de93e7710 Implemented PolyTextOutA/PolyTextOutW. 2003-06-06 18:10:18 +00:00
Mike McCormack 399967c10d Implemented GdiComment for enhanced metafiles. 2003-05-21 18:28:49 +00:00
Alexandre Julliard 33c2ad5712 Fixed return value of GetTextFaceA. 2003-05-19 23:24:30 +00:00
Huw Davies f39f591877 After we update the mapping mode reselect the current font back into
the dc so that its size is recalculated.
2003-05-19 23:23:50 +00:00
Huw Davies fa28b5eac2 GetRandomRgn(...,1) returns the current clipping rgn.
Moved GetRandomRgn and the MetaRgn functions to objects/clipping.c.
2003-05-19 19:03:19 +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
Alexandre Julliard ebc9abd1a1 Added partial stub for GetTransform. 2003-05-11 03:31:53 +00:00
Huw Davies 187c2b41b9 Playback escapes in metafiles. 2003-05-11 03:07:03 +00:00
Huw Davies 4bdeae37a1 Added stub for SetVirtualResolution. 2003-05-11 03:03:25 +00:00
Ulrich Czekalla e7cc4ad2ef Return value of ExtSelectClipRgn should consider visible region. 2003-05-11 02:52:04 +00:00
Dmitry Timoshkov e8e10e9a8e Make SetMapMode set default window and viewport extents as in
Windows.
2003-05-11 02:50:21 +00:00
Stefan Leichter ecc6f06375 Moved (stub) implementation of GetKerningPairs from ascii to unicode. 2003-04-27 20:36:35 +00:00
P. Christeas 77357a3f56 Fixed typo in SetGraphicsMode. 2003-03-27 00:02:00 +00:00
Shachar Shemesh 5aec52cccb Reordering can take place even if the font does not identify itself as
a reordering one.
2003-03-24 19:27:53 +00:00
Alexandre Julliard 7e92c9af7b Replaced most uses of the auto-generated glue code by explicit calls
to WOWCallback16Ex.
2003-02-27 21:09:45 +00:00
Alexandre Julliard 80774de724 Authors: Mike McCormack <mike@codeweavers.com>, Huw Davies <huw@codeweavers.com>
- make world transforms work in EMFs
- fix declaration of GDICOMMENT_* macros
- refuse to load unaligned EMFs
- fix SetWinMetaFileBits
2003-02-14 23:30:27 +00:00
Andrew John Hughes 6f929659bd Extended SetSystemPaletteUse to deal with error conditions. 2003-02-01 00:36:38 +00:00
Rein Klazes e43a430dd6 Load default stock bitmap in CreateDC(). 2003-01-24 00:44:54 +00:00
Rein Klazes e8d7f24fc0 Allocate palette objects on the large gdi heap. 2003-01-21 19:27:59 +00:00