Commit Graph

651 Commits

Author SHA1 Message Date
Rein Klazes
f20ce3b816 Fix MultiByteToWideChar and WideCharToMultiByte when called with code
page CP_SYMBOL.
Remove the symbol font from the code page table, so it is not reported
as a valid/supported/installed code page.
Remove workarounds for the badly behaved MultiByteToWideChar and co.
in a few places.
2004-01-20 22:39:06 +00:00
Alexandre Julliard
32f1ac3a66 Use the exported FONTENUMPROCW as parameter in the EnumDeviceFonts
driver function instead of defining a private function type.
2004-01-18 23:35:12 +00:00
Alexandre Julliard
b89525fb06 Removed the bitsPerPixel field in the generic DC structure, and leave
it up to the graphics driver to define it if necessary.
2004-01-18 22:20:17 +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
Alexandre Julliard
53145d96f6 Moved some code around to avoid exporting DIB functions from gdi32. 2004-01-13 23:31:46 +00:00
Vincent Béron
506ab8bcb0 Removed a W->A cross-call (CopyMetaFileW->CopyMetaFileA). 2004-01-13 04:54:45 +00:00
Vincent Béron
431a96f43a Get rid of a W->A crosscall (ResetDCA->ResetDCW). 2004-01-13 01:06:44 +00:00
Mike Hearn
8e9267e267 Change GetTransform stub to use the standard FIXME rather than ERR. 2004-01-12 21:10:48 +00:00
Marcus Meissner
33a58ffa0f xNum should be yNum in one place. 2004-01-06 00:37:05 +00:00
Vik Kumar
103f9893ca Font changes from MS P Gothic to MS UI Gothic. 2003-12-12 05:59:14 +00:00
Dimitrie O. Paun
2eaefbd1a4 Move content of global.h into the appropriate private headers. 2003-12-08 21:58:55 +00:00
Andrew de Quincey
6dece12fde Check brush style before printing FIXME. 2003-12-03 03:56:04 +00:00
Huw Davies
1025ff0c9b Implement CopyEnhMetaFileW. 2003-12-01 22:42:56 +00:00
Richard Cohen
444f9212af Added missing GDI_ReleaseObj() to GetDCBrushColor & GetDCPenColor. 2003-11-30 01:43:00 +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
Hiroshi Inoue
2d6a3fcc22 Fix the name of Japanese default GuiFont. 2003-11-25 00:05:58 +00:00
Huw Davies
13d0c285ca A bitmap created by CreateCompatibleBitmap should not be owned by a
driver until it is selected into it.  The driver checks that the
bitmap is of the correct depth in SelectBitmap.
2003-11-18 00:03:51 +00:00
Phil Krylov
7e941c8388 Added support for returning caret positions in
GetCharacterPlacementW().
2003-11-18 00:03:27 +00:00
Alexandre Julliard
f9be2f3d21 Removed some unnecessary includes. 2003-11-17 20:31:29 +00:00
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