Commit graph

449 commits

Author SHA1 Message Date
Amine Khaldi 02b26e04a7 [GDI32] Fix build with VS 2015.
svn path=/trunk/; revision=69016
2015-09-05 08:39:14 +00:00
Christoph von Wittich 3b6684d9db [WIN32SS] fix memory leak in error case CID 716637
svn path=/trunk/; revision=68987
2015-09-04 09:39:08 +00:00
Hermès Bélusca-Maïto e1097c60fc [WIN32SS] VOIDify function paramater lists when they indeed don't take any arguments.
svn path=/trunk/; revision=68973
2015-09-04 00:11:49 +00:00
James Tabor 8828db039a [NtGdi]
- Fix color setting.

svn path=/trunk/; revision=68876
2015-08-30 23:15:55 +00:00
Thomas Faber b6a27ff10b [WIN32K:NTGDI]
- Allow NULL rectangle in NtGdiSetBoundsRect as shown by the test. Fixes a bunch of annoying first chance exceptions

svn path=/trunk/; revision=68751
2015-08-18 10:25:45 +00:00
Timo Kreuzer 80443d48dc [WIN32K]
Implement EngQueryLocalTime.
This commit would not have been possible without Colin's SVN superpowers.

svn path=/trunk/; revision=68692
2015-08-11 17:45:56 +00:00
Thomas Faber 6371885a14 [WIN32K:NTGDI]
- Improve invalid parameter handling in IntGdiExtCreatePen. Patch by Benedikt Freisen.
CORE-9740 #resolve

svn path=/trunk/; revision=68630
2015-08-08 14:57:47 +00:00
James Tabor 05ef43979f [NtGdi]
- Add more function for NtUser.

svn path=/trunk/; revision=68608
2015-08-07 05:56:01 +00:00
James Tabor 2ce4504816 [NtGdi]
- Fix locking.

svn path=/trunk/; revision=68583
2015-07-31 06:55:22 +00:00
Daniel Reimer 3aa5d0fc69 [GDI32]
[USER32]
Fix release build.

svn path=/trunk/; revision=68102
2015-06-10 12:04:51 +00:00
Christoph von Wittich d4365a1beb [WIN32K]
fix some file headers and typos

svn path=/trunk/; revision=68094
2015-06-09 17:43:00 +00:00
Aleksey Bragin 90df906826 [GDI]
Remove unused macros around non-existing GDIOBJ_Free* functions.

svn path=/trunk/; revision=68072
2015-06-08 13:20:18 +00:00
Amine Khaldi e59aa0f1d0 [WIN32K] Apply some bits of Wine commit 88acc9c8 by Akihiro Sagawa: Don't modify output glyph metrics unless the function succeeds. CORE-9746
svn path=/trunk/; revision=67972
2015-05-30 17:00:52 +00:00
Amine Khaldi af907575d7 [WIN32K] Sync bezier.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67957
2015-05-29 20:57:23 +00:00
Amine Khaldi b97ddad165 [WIN32K] Apply Wine commit aec376d by Huw Davies: Clear the accel flags.
svn path=/trunk/; revision=67953
2015-05-29 17:14:30 +00:00
Amine Khaldi e4f03e95bc [WIN32K] Update FTVectorToPOINTFX to reduce diff to Wine.
svn path=/trunk/; revision=67949
2015-05-29 11:21:31 +00:00
Amine Khaldi d0fbb92a57 [WIN32K] Apply Wine commit 147765a by Sam Edwards: Prevent possible buffer overflows in get_glyph_outline.
svn path=/trunk/; revision=67948
2015-05-29 11:03:17 +00:00
Amine Khaldi 0a619bf67b [WIN32K] Add some missing range checks in ftGdiGetGlyphOutline. Fixes some gdi32:font tests. Thanks to Benedikt Freisen for the inspection. CORE-9746
svn path=/trunk/; revision=67947
2015-05-29 10:50:38 +00:00
Timo Kreuzer df9f3a9e44 [WIN32K]
Add debug prints to NtGdiPathToRegion

svn path=/trunk/; revision=67815
2015-05-17 16:26:23 +00:00
Timo Kreuzer e59b02d08f [WIN32K]
Add debugprints to some region and path functions.

svn path=/trunk/; revision=67811
2015-05-17 14:34:49 +00:00
Timo Kreuzer 369786f126 [KERNEL32/KSECDD/GDI32/BMFD/DBGHELP/HALARM/SETUPLDR]
Fix ARM build

svn path=/trunk/; revision=67736
2015-05-14 22:32:35 +00:00
Amine Khaldi df00499cad [WIN32K] Fix drawing the Start and End Segments with Pie(). Brought to you by Barrett Karish. CORE-6851
svn path=/trunk/; revision=67420
2015-04-25 17:30:43 +00:00
Christoph von Wittich 0a98cc57f4 [WIN32K]
use ExFreePoolWithTag instead of ExFreePool

svn path=/trunk/; revision=67384
2015-04-24 19:24:07 +00:00
Christoph von Wittich 10295ad9df [WIN32K]
fix a memory leak in error case

svn path=/trunk/; revision=67383
2015-04-24 18:38:48 +00:00
Christoph von Wittich 91017f0f9a spelling fixes only
svn path=/trunk/; revision=67379
2015-04-24 12:45:55 +00:00
Amine Khaldi cf73294f5a [GDI32] Add missing newline in a debug print.
svn path=/trunk/; revision=67357
2015-04-22 22:02:45 +00:00
Thomas Faber a6840dcddd [GDI32][WIN32K:NTGDI]
- Correctly handle relative paths passed to AddFontResource*.
- Fix the user->kernel interface between GdiAddFontResourceW and NtGdiAddFontResourceW
Patch by Víctor Martínez Calvo.
CORE-9079

svn path=/trunk/; revision=67353
2015-04-22 20:24:29 +00:00
Timo Kreuzer b8d8a11522 [WIN32K]
Add missing locking in BASEOBJ::LockShared. Fixes theming regression.
CORE-9535 #resolve

svn path=/trunk/; revision=67282
2015-04-18 23:27:05 +00:00
Thomas Faber c9fa5328d9 [GDI32]
- Fix uninitialized variable use in EnumEnhMetaFile
- Apply Wine commit 88e81025 (gdi32: Fix typo in a condition (PVS-Studio).) by André Hentschel
CORE-9191 #resolve

svn path=/trunk/; revision=67126
2015-04-10 09:27:25 +00:00
Timo Kreuzer f110853aaa [WIN32K]
Allocate the device lock semaphore for a PDEVOBJ in PDEVOBJ_AllocPDEV and implement PDEVOBJ_vDeletePDEV. Fixes a PDEVOBJ leak, found by Thomas and Giannis.

svn path=/trunk/; revision=67060
2015-04-05 12:45:01 +00:00
Timo Kreuzer 77eb553987 [WIN32K]
Check in BltMask if the masking operation would exceed the mask bitmap. Should fix crash when running gdi32_apitest MaskBlt.
CORE-9483

svn path=/trunk/; revision=67058
2015-04-05 08:40:52 +00:00
Timo Kreuzer 976a3274ad [WIN32K]
Rewrite brush code in C++

svn path=/trunk/; revision=66893
2015-03-25 22:38:20 +00:00
Timo Kreuzer ec0f3d9ba9 [WIN32K]
Handle DIB_PAL_INDICES in DIB_BitmapInfoSize

svn path=/trunk/; revision=66892
2015-03-25 22:37:16 +00:00
Timo Kreuzer 0f8766d749 [WIN32K]
- Make brush structure definition C++ compatible
- Add delete callback for GDI objects and use if for brushes.
- Make IntGdiSetSolidBrushColor NTAPI instead of FASTCALL

svn path=/trunk/; revision=66891
2015-03-25 22:32:48 +00:00
Timo Kreuzer 8123f0d8b5 [WIN32K]
Make internal GDI headers C++ compatible, get rid of USER dependencies

svn path=/trunk/; revision=66889
2015-03-25 22:32:22 +00:00
Timo Kreuzer 5528fd245a [WIN32K]
Implement GreCreateDIBitmapFromPackedDIB

svn path=/trunk/; revision=66885
2015-03-25 22:27:16 +00:00
Timo Kreuzer 1ddbcff3ca [WIN32K]
Add definition for DIB_PAL_INDICES and fix typo in the related brush flag (BR_IS_DIBPALINDICES). See http://support.microsoft.com/kb/kbview/108497

svn path=/trunk/; revision=66884
2015-03-25 22:27:05 +00:00
Timo Kreuzer e431dd155c [WIN32K]
- Handle allocation failures in FixupDIBBrushPalette
- In IntCreateDIBitmap make sure to the absolute height to GreCreateBitmap

svn path=/trunk/; revision=66883
2015-03-25 22:26:52 +00:00
Kamil Hornicek 61e77276a2 [GDI32]
- export GdiGetBitmapBitsSize

svn path=/trunk/; revision=66864
2015-03-23 13:25:16 +00:00
Christoph von Wittich 4a5a775bf6 [WIN32K]
Gracefully handle failure in DrvEnableSurface.
patch by Timo Kreuzer

svn path=/trunk/; revision=66851
2015-03-21 16:29:40 +00:00
Aleksey Bragin 1de8ba622f [WIN32K]
- Delete macros referring to non-existing GDIOBJ_FreeObj and GDIOBJ_FreeObjByHandle.

svn path=/trunk/; revision=66738
2015-03-16 17:05:56 +00:00
Timo Kreuzer 26b0009be6 [GDI32]
Make sure winternl.h is included from the wine folder

svn path=/trunk/; revision=66717
2015-03-14 23:35:27 +00:00
Timo Kreuzer 5f980c38ce [WIN32K]
Fix a typo introduced in r66644. Fixes icon corruption / testbot regression.
CORE-9351 #resolve

svn path=/trunk/; revision=66656
2015-03-10 10:01:44 +00:00
Timo Kreuzer 475a0d5255 [WIN32K]
Annotate eng/mapping.c

svn path=/trunk/; revision=66650
2015-03-10 00:13:43 +00:00
Timo Kreuzer eebc6ac87d [WIN32K]
Annotate mouse.c, move some prototypes to the proper location.
Fix bugs in EngSetPointerShape and IntEngSetPointerShape, where the passed in XLATEOBJ could be NULL. Found by MSVC static analyzer.

svn path=/trunk/; revision=66649
2015-03-10 00:13:29 +00:00
Timo Kreuzer af94181e04 [WIN32K]
Annotate rect.c

svn path=/trunk/; revision=66648
2015-03-10 00:13:17 +00:00
Timo Kreuzer b673073aa1 [WIN32K]
- Annotate eng/device.c and semaphor.c.
- Get rid of IntGdiAcquire/ReleaseSemaphore
- Move some prototypes where they belong

svn path=/trunk/; revision=66647
2015-03-10 00:13:04 +00:00
Timo Kreuzer d33bc192ba [WIN32K]
Fix all MSVC static analyzer warnings. (a few are suppressed after checking that it's ok)
Fixes a number of missing or wrong function return checks, wrong printf format specifiers and a few other things,

svn path=/trunk/; revision=66646
2015-03-10 00:12:41 +00:00
Timo Kreuzer 42587dd1d3 [WIN32K]
Apply proper formatting to polyfill.c

svn path=/trunk/; revision=66645
2015-03-10 00:11:43 +00:00
Timo Kreuzer fe4dc5d9d5 [WIN32K]
Annotate a number of GDI functions to match public header declarations.

svn path=/trunk/; revision=66644
2015-03-10 00:11:29 +00:00