Commit graph

24 commits

Author SHA1 Message Date
Timo Kreuzer
9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
James Tabor
713671e519 [Win32k|Gdi32]
- Fix GdiBatch, the limit is for user space not system. Revert 45659.

svn path=/trunk/; revision=45667
2010-02-23 04:18:24 +00:00
Stefan Ginsberg
a8889958e3 - delayimp.h: Use FORCEINLINE instead of static __inline__
- winbase.h: Make winbase.h usable by MSVC
- winuser.h: Add missing const specifiers to GetTabbedTextExtentA/W, TabbedTextOutA/W, ToAscii/Ex and ToUnicode/Ex
- Make gdi32, user32, beepmidi and csrss drmk build in msvc
- Fix most msvc issues in win32k -- a few remain
- Make ntoskrnl compile with /W1 again

svn path=/trunk/; revision=42314
2009-07-31 18:21:24 +00:00
Timo Kreuzer
ea055dde70 Rename NtGdiDeleteObject to GreDeleteObject
svn path=/trunk/; revision=40240
2009-03-25 20:24:34 +00:00
Timo Kreuzer
b4cc54f089 Rename GDIDEVICE to PDEVOBJ. Is seems ms uses both PDEV and PDEVOBJ, whith the latter being the C++ representation. But we don't use C++ and PDEVOBJ seems to be a more appropriate name, as PDEV is often used by display drivers.
Make DC.ppdev of type PDEVOBJ* and remove a bunch of typecasts.

svn path=/trunk/; revision=40137
2009-03-20 18:02:55 +00:00
Timo Kreuzer
c0ee5e5328 rename DCs pDc_Attr to pdcattr, like in gdikdx.
Make pdcattr alsways point to a DC_ATTR, either the user mode struct or the local part. Get rid of all the If (!pdcattr) pdcattr = &dc->Dc_Attr; That are not required anymore.

svn path=/trunk/; revision=40115
2009-03-20 04:51:26 +00:00
James Tabor
cc68aa2bcc - Remove locking in gdi batch.
svn path=/trunk/; revision=37160
2008-11-03 06:52:42 +00:00
James Tabor
53586450b4 - Add new function for locking text font objects when realized. This is for batching support.
- Batching works for selected fonts, due to a system initialization bug this is disabled.
- Miscellaneous changes and updates.


svn path=/trunk/; revision=37159
2008-11-03 05:38:02 +00:00
Timo Kreuzer
fa7b96c770 fix indentation
svn path=/trunk/; revision=33844
2008-06-03 23:59:26 +00:00
Timo Kreuzer
363e65143d (Nt)GdiFlushUserBatch:
- optmize by moving the locking of the dc to NtGdiFlushUserBatch instead of doing it for every object
- fix wrong pointer calculation (GdiFlushUserBatch returns the size of the objects in bytes not in ULONG)
- simplify a check
- add a comment: on XP NtGdiFlushUserBatch doesn't return NTSTATUS, but a pointer to inside the Teb, maybe random/VOID

svn path=/trunk/; revision=33750
2008-05-28 22:25:08 +00:00
James Tabor
420a4b869c Add new dxdd support members to gdi device structure.
svn path=/trunk/; revision=31573
2008-01-02 22:17:59 +00:00
James Tabor
9f375e0914 Prevent crash in gdibatch.
svn path=/trunk/; revision=31111
2007-12-09 18:45:13 +00:00
Christoph von Wittich
67c0893d5d check for a valid dc before accessing Dc_Attr
svn path=/trunk/; revision=30997
2007-12-04 15:31:11 +00:00
James Tabor
124f989076 Fix NtGdiFlush so it will not spam the debug list. Add changes and fixups.
svn path=/trunk/; revision=30994
2007-12-04 07:51:03 +00:00
James Tabor
d660a25834 Unbreak gdi batch... Sometimes dc is null.
svn path=/trunk/; revision=30931
2007-12-01 13:26:45 +00:00
Timo Kreuzer
8553d5ea02 patch by jimtabor: add GdiBCSelObj to GdiFlushUserBatch
svn path=/trunk/; revision=30929
2007-12-01 02:09:39 +00:00
Aleksey Bragin
88abaa75d9 - Move the check for a NULL dc higher (before it's actually used). Fixes crashes (in FireFox, for example).
svn path=/trunk/; revision=30920
2007-11-30 20:19:25 +00:00
James Tabor
cc030181aa Revert 30780 for gdibatch. Size, space and time are very critical in here. If you dont know what your are doing? Do not play in here.
svn path=/trunk/; revision=30807
2007-11-27 01:14:38 +00:00
Johannes Anderwald
755bf1c3e7 - make code ANSI-C compatible (makes msvc more happier )
svn path=/trunk/; revision=30780
2007-11-26 11:24:48 +00:00
James Tabor
92f9c23098 Complete move to Dc_Attr in win32k. Tested Qemu Linux, Xp with AbiWord.
svn path=/trunk/; revision=30546
2007-11-18 13:51:34 +00:00
James Tabor
06ccf45dd1 Sorry guys! Would have anyone know that Abiword calls GdiFlush every second.
svn path=/trunk/; revision=30211
2007-11-06 02:33:38 +00:00
James Tabor
0dc4496ea8 Allow batch flush to handle null DCs.
svn path=/trunk/; revision=30145
2007-11-05 02:25:43 +00:00
James Tabor
1423476391 - Implement batching for DeleteObject.
- Implemented DeleteRegion, a support function with batching.
- Add delete objects and a hack to fake the running of the batch to gdibatch.c.
- These batching functions will not run until proper structure attributes are implemented.

svn path=/trunk/; revision=30144
2007-11-05 01:50:59 +00:00
James Tabor
405a934dab Win32k:
- Forked dcutil and gdibatch.
- Added our first batch SetBrushOrg.
- cleaned up dcutil.
- Added dcattr support for NtGdiSetBrushOrg.
- Tested with qemu and hardware. Needs vendor app testing.

svn path=/trunk/; revision=30064
2007-11-02 04:23:31 +00:00