Alexandre Julliard
61925b7e89
gdi32: Return copies of the region in InquireVisRgn16 and GetClipRgn16.
2009-11-17 15:14:54 +01:00
Alexandre Julliard
569f56e87a
gdi32: Disable the 16-bit visible region manipulation functions.
2009-11-17 15:14:54 +01:00
Alexandre Julliard
250237e1c1
gdi32: Reimplement LPtoDP16/DPtoLP16 on top of the 32-bit functions.
2009-11-17 15:14:54 +01:00
Alexandre Julliard
9a145d13f1
gdi32: Don't crash when we don't have AbortProc thunks.
2009-11-17 15:14:54 +01:00
Roderick Colenbrander
f4b88e34ec
wgl: Get rid of delayed GLX context creation. Instead attempt to re-create a context when wglShareLists is called.
2009-11-16 17:42:54 +01:00
Detlef Riekenberg
495267e5f1
wineps: Don't depend on 16-bit PrinterData functions from gdi.
2009-11-16 13:48:18 +01:00
Eric Pouech
40eea7acd7
gdi.exe: Rewrite QueryAbort16 to be independant of gdi32.dll internals.
2009-11-16 13:47:38 +01:00
Eric Pouech
8e248c063f
gdi.exe: No longer use 16bit abort procs inside the DC structure.
2009-11-16 13:47:29 +01:00
André Hentschel
8f31df1dd8
gdi32/tests: Test CreateFontIndirect for suffix stripping.
2009-11-16 13:25:00 +01:00
Huw Davies
16c20d3c73
gdi32/tests: Test the return value of GetClipBox before trying to access the rect.
2009-11-13 13:36:35 +01:00
Alexandre Julliard
872feb47c4
gdi32: Don't update the metafile bounding box in ExtTextOut if there's no rectangle.
2009-11-11 13:07:10 +01:00
Nikolay Sivov
2854884a42
gdi32: Always create a context for DIB_RGB_COLORS.
2009-10-22 14:39:21 +02:00
Nikolay Sivov
dd0a7078e0
gdi32: Prevent possible buffer overrun.
2009-10-20 14:09:25 +02:00
Dmitry Timoshkov
2158999382
gdi32: Rework the test for too large width/height font ratio to pass with different font heights, make it pass under Wine.
2009-10-07 12:27:51 +02:00
Joel Holdsworth
170e425b00
gdi32: Added tests for StretchDIBits.
2009-10-02 11:50:01 +02:00
Joel Holdsworth
fb0b7381d0
gdi32: Added tests for StretchBlt.
2009-10-02 11:49:46 +02:00
Alexandre Julliard
ab15d13290
gdi32: Fall back to StretchBlt if the driver doesn't export PatBlt or BitBlt.
2009-09-30 20:55:26 +02:00
Alexandre Julliard
29d68b3fa7
gdi32: Move the 16-bit DIB pointer support to gdi16.c.
2009-09-26 13:50:37 +02:00
Alexandre Julliard
3411821ff6
gdi32: Get rid of the 16-bit DC hook support.
...
It can only work with native user32 anyway.
2009-09-26 13:32:47 +02:00
Alexandre Julliard
6ad951804a
gdi32: Make wing.dll into a stand-alone 16-bit module.
2009-09-26 13:32:25 +02:00
Alexandre Julliard
7582b13d8d
gdi32: Move remaining 16-bit metafile functions to metafile16.c
2009-09-26 13:31:45 +02:00
Alexandre Julliard
d69dd56495
gdi32: BS_DIBPATTERN brushes use a 32-bit handle in 32-bit mode.
2009-09-26 13:30:06 +02:00
Rico Schüller
43ce10d168
gdi32: Check the current context in wglMakeCurrent().
2009-09-22 17:47:10 +02:00
Markus Stockhausen
e51b20bf05
gdi32: Check for NULL pointer in GdiAlphaBlend.
2009-09-18 09:14:16 -05:00
Ilya Shpigor
dad99e2aa9
gdi32/tests: Add test for SelectClipRgn in metafile.
2009-09-08 14:16:31 +02:00
Andrew Nguyen
4569eb2e66
gdi32: Fix the type of a few return values.
2009-08-06 17:26:29 +02:00
Aric Stewart
7214f650ef
gdi32: Ensure child fonts have names.
2009-08-03 16:00:42 +02:00
Dmitry Timoshkov
69b29fa07e
gdi32: Use a better heuristics for tmWeight.
...
Marlett uses FW_MEDIUM (500) and current code allows only FW_REGULAR and
FW_BOLD. New heuristics detects if flags and usWeightClass in the font match.
2009-08-03 14:59:08 +02:00
Dmitry Timoshkov
16aa1369f8
gdi32: Some fonts have a broken last segment of cmap4 table, avoid a crash in that case.
...
Freetype has a similar consistency check.
2009-08-03 14:58:57 +02:00
Huw Davies
1d66e20ead
gdi32/tests: Add a broken case for some versions of winxp.
2009-07-17 12:38:08 +02:00
Joel Holdsworth
91f458314b
gdi32/tests: Added tests for BitBlt.
2009-07-16 16:18:20 +02:00
Aric Stewart
6a5bb87e3a
gdi32: In init_system_links, reinitialize val_len and data_len before continuing.
2009-07-16 11:13:02 +02:00
Huw Davies
e5c614e6b1
gdi32/tests: Allow a small tolerance when comparing scaling values.
2009-07-13 10:32:11 +02:00
Huw Davies
904b2749f7
gdi32/tests: Don't continue with the tests if GetWinMetaFileBits fails.
2009-07-08 20:15:00 +02:00
Huw Davies
787ead8088
gdi32: Use a modified version of MulDiv to match native behaviour.
2009-07-07 13:22:13 +02:00
Paul Vriens
31d82c5fdc
gdi32/tests: Mark an intermittent failure as broken() on Win9x/ME.
2009-07-06 14:35:25 +02:00
Huw Davies
395436d2e9
gdi32/tests: Fix tests on win9x and winMe.
2009-07-03 11:28:06 +02:00
Huw Davies
dca1b517ec
gdi32/tests: Add some traces and fix a few comments.
2009-07-02 13:17:49 +02:00
Huw Davies
12adc3e1fb
gdi32: Add tests for the map mode and window size records.
2009-07-02 13:17:44 +02:00
Huw Davies
8edbd0639e
gdi32: Write the map mode and window size records after the mfcomment.
2009-07-02 13:17:35 +02:00
Huw Davies
d79943446f
gdi32/tests: Dump the correct metafile if the test fails.
2009-07-01 14:50:53 +02:00
Huw Davies
470e8fe2f4
gdi32/tests: Add a test for the MFCOMMENT record's size.
2009-07-01 14:50:50 +02:00
Huw Davies
d6bb2b7591
gdi32: Add tests for the GetWinMetaFileBits MFCOMMENT record.
2009-06-30 12:58:17 +02:00
Huw Davies
41bbc007a4
gdi32: Store the original emf as a sequence of MFCOMMENT records.
2009-06-30 12:58:10 +02:00
Huw Davies
db6a9e6f75
gdi32: Remove obviously incorrect calls to SetMapMode.
2009-06-30 12:57:55 +02:00
Huw Davies
d7af14f1b5
gdi32: Use the unicode version of CreateMetaFile.
2009-06-30 12:57:43 +02:00
Francois Gouget
8b93e1fe06
gdi32/tests: Make test_GetTextMetrics2() static.
2009-06-29 13:22:51 +02:00
Francois Gouget
4f0c6a3172
gdi32/tests: Fix the trailing '\n' of a few ok() calls.
2009-06-26 14:40:08 +02:00
Huw Davies
08453c1f2b
configure: Remove reference to obsolete ftnames.h.
2009-06-25 14:34:13 +02:00
Rein Klazes
08ca2fa6a9
gdi32/tests: Show that there is an upper limit to the width of a font that can be specified.
2009-06-25 12:08:12 +02:00
Huw Davies
4b9c22d66b
gdi32: Add tests for GetTransform.
2009-06-24 14:52:21 +02:00
Huw Davies
6260af2a7c
gdi32: Implement GetTransform for the other valid transform types.
2009-06-24 14:52:19 +02:00
Huw Davies
e920f5f7d7
gdi32: Add tests for SetVirtualResolution.
2009-06-23 16:21:46 +02:00
Huw Davies
5c386041fc
gdi32: Implement SetVirtualResolution.
2009-06-23 16:21:42 +02:00
Huw Davies
3742389d45
gdi32: CBM_INIT is a flag.
2009-06-22 14:32:28 +02:00
Paul Vriens
53b1e8909f
gdi32/tests: Fix the last test failure on NT4.
2009-06-16 13:37:21 +02:00
Paul Vriens
eae4b22b61
gdi32/tests: Fix some test failures on NT4.
2009-06-16 13:37:11 +02:00
Louis Lenders
afce86b4bc
gdi32: Add stub for GdiEntry13.
2009-06-15 13:42:31 +02:00
Paul Vriens
cf43e2cac7
gdi32/tests: Fix several test failures on Win9x/WinME/NT4.
2009-06-15 13:42:30 +02:00
Francois Gouget
34accb382b
gdi32/tests: Small indentation fix.
2009-06-15 13:42:29 +02:00
Rein Klazes
d145f399ca
gdi32: Fix RectInRegion() if right < left or bottom < top.
2009-06-08 13:18:58 +02:00
Michael Stefaniuc
0737fc2c72
gdi32: Avoid using long when not needed.
2009-06-02 11:57:22 +02:00
Paul Vriens
9f4283dcc6
gdi32/tests: Fix a test failure on Win9x/WinME.
2009-05-22 15:16:29 +02:00
Paul TBBle Hampson
87cd36db5e
gdi32: Autopopulate FontLinks when autopopulating FontSubstitutes.
...
When Wine's codepage changes, FontSubstitutes is redefined to use
fonts appropriate for that codepage. Configure FontLinks to reasonable
defaults at the same time.
2009-05-12 13:19:05 +02:00
Paul TBBle Hampson
ce426d6ad1
gdi32: Don't add system_links entries for substituted fonts.
...
When a Font is looked up in the FontLinks table, they have already
been normalised by FontSubstitutes.
So no need to store system_links entries for fonts that appear as keys
in the FontSubstitutes list.
2009-05-05 15:39:58 +02:00
Paul TBBle Hampson
8a4b77883e
gdi32: Fetch child fonts by real parent font name.
...
Entries in the list of linked fonts are keyed by the substituted font
name, so need to be looked up by the substituted font name.
2009-05-05 15:39:36 +02:00
Nikolay Sivov
0f9bc1d3b7
gdi32: Check header pointer in CreateDIBitmap.
2009-05-04 14:57:32 +02:00
Paul TBBle Hampson
4b45767e2a
gdi32: Remove tabs from init_system_links TRACEs.
2009-04-30 12:46:09 +02:00
Paul TBBle Hampson
0cde093fdc
gdi32: Ensure font name comparisons are case-insensitive.
2009-04-30 12:45:58 +02:00
Rein Klazes
5265e0f2e5
winex11: GetPixel() on a monochrome bitmap should return black or white, not dark red.
2009-04-29 15:50:25 +02:00
Paul Vriens
f043f3db27
gdi32/tests: Fix a test failure on NT4.
2009-04-28 11:58:27 +02:00
Paul Vriens
75f6b1d636
gdi32/tests: Fix some test failures on Win9x/WinME.
2009-04-28 11:58:14 +02:00
Paul Vriens
05c50725db
gdi32/tests: Fix a test failure on NT4.
2009-04-23 18:14:27 +02:00
Paul Vriens
59cc56b15a
gdi32/tests: Skip several tests on Win9x.
2009-04-20 14:12:43 +02:00
Alexandre Julliard
55fc90220f
gdi32: Fix SetEnhMetaFileBits last error handling.
2009-04-07 20:55:59 +02:00
Alexandre Julliard
eceed527f6
gdi32: Completely implement RestoreDC in the driver, having it call restore_dc_state if necessary.
2009-04-07 20:55:56 +02:00
Alexandre Julliard
e2f888a617
gdi32: Allow the visible region to be zero since this is the case for metafiles.
2009-04-07 20:55:42 +02:00
Alexandre Julliard
bbb1626bf8
gdi32: Completely implement SaveDC in the driver, having it call save_dc_state if necessary.
2009-04-07 20:55:28 +02:00
Alexandre Julliard
d4c54be272
gdi32: Move the whole DC restoring functionality into set_dc_state, and rename it to restore_dc_state.
2009-04-07 20:28:08 +02:00
Alexandre Julliard
a23725785e
gdi32: Move the whole DC saving functionality into get_dc_state, and rename it to save_dc_state.
2009-04-07 20:18:58 +02:00
Alexandre Julliard
1380f0ac40
gdi32: Remove Get/SetDCState16 implementation, it should not be used by apps.
2009-04-07 20:13:45 +02:00
Alexandre Julliard
88e01969c2
gdi32: Move freeing of the DC path and regions into free_dc_ptr.
2009-04-07 20:13:08 +02:00
Alexandre Julliard
1f1d157237
gdi32/tests: Add some metafile tests. Fix typos.
2009-04-07 15:20:13 +02:00
Aric Stewart
cac6b96de4
gdi32/tests: Demonstrate issues in wine with SaveDC and RestoreDC in metafiles and enhmetafiles.
2009-04-06 13:52:14 +02:00
Dmitry Timoshkov
95156d1b5f
gdi32: Use GdiGetCodePage() instead of duplicating its functionality.
2009-04-06 12:57:21 +02:00
Dmitry Timoshkov
4bb8d9c1c2
gdi32: Cache current font code page in the DC structure.
2009-04-06 12:57:11 +02:00
Dmitry Timoshkov
301b5d2772
gdi32: Add a couple of SetGraphicsMode/SetWorldTransform tests, make them pass under Wine.
2009-04-06 12:56:50 +02:00
Massimo Del Fedele
da6a94cd96
gdi32: Fix PATH_add_outline when mapping mode != MM_TEXT.
2009-03-31 16:43:05 +02:00
Massimo Del Fedele
a11a450e33
gdi32: PATH_ExtTextOut remove incorrect shift to DC origin.
2009-03-31 16:43:04 +02:00
Massimo Del Fedele
23acdb7143
gdi32: Correctly handle space char on Path_ExtTextOut().
2009-03-31 16:43:04 +02:00
Massimo Del Fedele
97e81bc3bd
gdi32/tests: Add test for GetGlyphOutlineW() requesting buffer size for space char.
2009-03-31 16:43:04 +02:00
Michael Stefaniuc
4114cea302
gdi32: Use "%p" to TRACE() pointers.
2009-03-25 11:09:19 +01:00
Paul Vriens
3668edcdf4
gdi32/tests: Fix some test failures on Win9x.
2009-03-13 14:52:52 +01:00
Paul Vriens
dde935f0bf
gdi32/tests: Fix two test failures on Win9x.
2009-03-12 15:39:51 +01:00
Huw Davies
908ff58339
gdi32/tests: Under win9x GetBitmapBits returns zero when passed a NULL buffer.
2009-03-11 13:03:33 +01:00
Huw Davies
f1e1ae7483
gdi32/tests: Mark as broken another case where win9x doesn't set biSizeImage.
2009-03-11 13:03:33 +01:00
Huw Davies
d77ed15f05
gdi32/tests: win9x doesn't initialise the bitmap bits. Mark this behaviour as broken.
2009-03-11 13:03:33 +01:00
Huw Davies
e41e1f8f84
gdi32/tests: Remove a cut and paste error.
2009-03-11 13:03:33 +01:00
Huw Davies
3d461dbe85
gdi32/tests: Win9x's GetDIBits() sets biSizeImage to zero for BI_RGB dibs.
2009-03-10 12:09:12 +01:00
Huw Davies
f7608053e7
gdi32/tests: Marked another win9x failure as broken.
2009-03-10 12:09:08 +01:00
Huw Davies
bbafe93858
gdi32/tests: Fix yet another place where win9x returns bmType equal to 0x5250.
2009-03-10 12:09:04 +01:00
Huw Davies
5ccf92f512
gdi32/tests: Fix another case where win9x returns bmType equal to 0x5250.
2009-03-09 13:55:48 +01:00
Huw Davies
a88e6e0182
gdi32/tests: win9x doesn't return the correct number of colours used with dib sections created via DIB_PAL_COLORS.
2009-03-09 13:55:45 +01:00
Huw Davies
240651e0c1
gdi32/tests: Mark win9x behaviour as broken.
2009-03-09 13:55:42 +01:00
Alexandre Julliard
86f54f4c89
gdi32: Make dispdib.dll into a stand-alone 16-bit module.
2009-03-04 14:27:05 +01:00
Huw Davies
17a866df29
gdi32/tests: Fix tests on NT4.
2009-03-04 13:06:23 +01:00
Huw Davies
246a9a6f7a
gdi32/tests: Win9x doesn't initialize the bitmap bits, so skip this test.
2009-03-04 13:06:20 +01:00
Huw Davies
1ad19cc9ce
gdi32/tests: Improve some test failure messages.
2009-03-03 13:26:20 +01:00
Eric Pouech
21c3e79e52
winex11: Correctly pad 1 bpp DDB's lines with 0 values.
2009-03-02 15:02:43 +01:00
Dmitry Timoshkov
d15619b215
gdi32: Fix the font rotation direction.
...
Apparently at some point either freetype got fixed, or other gdi32
changes made the matrix members usage match freetype. This patch makes
my test application match the Windows behaviour in font rotation direction.
2009-03-02 12:11:35 +01:00
Huw Davies
973ac6dbd2
gdi32/tests: Winnt doesn't set last error when a NULL dc is passed to GetDIBits.
2009-02-27 16:22:38 +01:00
Huw Davies
103f3db95f
gdi32/tests: Don't expect the screen dc's bitmap to be mono 1x1.
2009-02-27 16:22:27 +01:00
Huw Davies
e270f5a89d
gdi32/tests: Add a broken() to an always true test.
2009-02-27 16:22:08 +01:00
Dmitry Timoshkov
b3e65ba399
gdi32: Revert an unrelated part of 028617b90b
.
...
It was not a very nice idea to break bitmap fonts which request a custom
width (therefore a transformation) in a patch that pretended to do something
unrelated.
2009-02-27 13:15:44 +01:00
Francois Gouget
9de60b9c2c
gdi32/tests: Use win_skip() to skip over unimplemented functionality.
2009-02-24 16:57:26 +01:00
Huw Davies
5b183a208f
gdi32/tests: Don't test the height that is 1.75 times the original font height. This is unscaled in winnt yet doubled in win9x.
2009-02-23 15:24:56 +01:00
Huw Davies
ff2f88cf08
gdi32: Fix fractional scaling threshold.
2009-02-20 18:46:04 +01:00
Paul Vriens
ac6077023f
gdi32/tests: Report a missing function only once.
2009-02-20 18:07:42 +01:00
Huw Davies
5c8c151aa8
gdi32/tests: Add tests for the 120 dpi bitmap fonts.
2009-02-19 15:57:47 +01:00
Huw Davies
4f25723853
gdi32: Set the font family as FF_MODERN if the panose marks it as monospaced.
2009-02-19 15:57:47 +01:00
Huw Davies
e6a0fa9f44
gdi32/tests: Output the requested font name on failure.
2009-02-19 15:57:47 +01:00
Huw Davies
ee339afa3f
gdi32/tests: Output the required font height if the test fails.
2009-02-19 15:57:47 +01:00
Rob Shearman
ccce11d2c3
gdi32: Move 16-bit functions not exported in gdi32.dll into files compiled only when 16-bit functionality is enabled.
2009-02-19 12:51:50 +01:00
Huw Davies
f4e3e18b42
gdi32/tests: From Vista onwards TabbedTextOut ignores justification, so remove that bit of the test.
2009-02-18 14:48:05 +01:00
Huw Davies
2c6ddb8030
gdi32: The special handling of the character codes metrics for symbol fonts should be based on the presence of the MS symbol charmap rather than whether the font is enumerated as SYMBOL_CHARSET.
2009-02-18 13:13:29 +01:00
Huw Davies
c40b434172
gdi32/tests: Win9x truncates the LONG elements of LOGFONT to 16 bit values.
2009-02-18 13:13:26 +01:00
Huw Davies
bd69c2e95a
gdi32/tests: Allow the first char code to point to glyph 0 (the .notdef glyph).
2009-02-17 15:14:57 +01:00
Huw Davies
24c9a37aaf
gdi32: In a Baltic locale the last char of a symbol font is reported as 0xf8fd rather than 0xf0ff.
2009-02-17 15:14:53 +01:00
Huw Davies
aecf29ae84
gdi32/tests: Win9x doesn't ensure the facename is nul terminated. Compare the logfont one element at a time.
2009-02-17 15:14:35 +01:00
Huw Davies
7cc7ad5ec4
gdi32/tests: Win98 and WinMe actually do set error codes.
2009-02-17 15:14:29 +01:00
Huw Davies
c404d00b3d
gdi32/tests: GetTextFaceA called with a NULL buffer returns 0 on win98 and winMe.
2009-02-17 15:14:25 +01:00
Michael Stefaniuc
056359cc4e
gdi32: SetAbortProc is not a 16bit function but a 32bit one.
2009-02-17 12:47:32 +01:00
Huw Davies
3fa05ae6a7
gdi32/tests: Only test the lowest byte of GdiRealizationInfo flags so that the test passes on Vista.
2009-02-16 16:01:38 +01:00
Huw Davies
e93d348109
gdi32: Improve calculation of the character code text metrics.
2009-02-16 16:01:37 +01:00
Huw Davies
d9811e6927
gdi32/tests: Use the ANSI text metrics so the tests work on win9x.
2009-02-12 17:53:34 +01:00
Huw Davies
aaefb75f8d
gdi32: Add missing serif types.
2009-02-12 17:53:34 +01:00
Huw Davies
8ab829a68a
gdi32: Correct the font family values returned in the text metrics.
2009-02-11 16:14:46 +01:00
Francois Gouget
f250f4fa04
Assorted spelling fixes.
2009-02-11 15:56:02 +01:00
Dmitry Timoshkov
5804470f26
gdi32: Make sure that World2Vport DC transformation is valid before using it.
2009-02-05 13:15:17 +01:00
Dmitry Timoshkov
24937a4f0f
gdi32: Add a test for the MAT2 parameter of GetGlyphOutline, make it pass under Wine.
2009-02-03 12:40:27 +01:00
Dmitry Timoshkov
44589c6f8f
gdi32: The MAT2 parameter of GetGlyphOutline is mandatory.
2009-02-03 12:40:24 +01:00
Alexandre Julliard
687dfd69e9
gdi32: Check for memory allocation failure in region functions and propagate the error correctly.
2009-01-29 21:45:01 +01:00
Alexandre Julliard
ec4af0764b
gdi32: Replace the MEMCHECK macro in the region code by a proper function.
2009-01-29 21:45:01 +01:00
Alexandre Julliard
919b1076c9
gdi32: Don't hold the GDI lock while creating regions.
2009-01-29 21:45:01 +01:00
Alexandre Julliard
a686b8b583
gdi32: Store the region data directly in the GDI object.
2009-01-29 21:45:01 +01:00
Alexandre Julliard
73593cbf5a
gdi32: Store a separate flag to mark a GDI object for delayed destruction.
2009-01-29 21:45:01 +01:00
Alexandre Julliard
827e1f1de3
gdi32: Increment the reference count for the initial DC stock objects.
2009-01-29 21:44:52 +01:00
Alexandre Julliard
7b82b98ee8
gdi32: Don't hold the GDI lock while calling the Freetype font engine functions.
2009-01-28 19:38:15 +01:00
Alexandre Julliard
f1ea7a40f8
gdi32: Get rid of GDI_ReallocObject.
2009-01-28 19:04:04 +01:00
Alexandre Julliard
a83c81b544
gdi32: Allocate palette entries separately from the main GDI object.
...
This allows resizing the palette without changing the object pointer.
2009-01-28 19:02:17 +01:00