Commit graph

18 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
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
Dmitry Gorbachev
ee55e122dd Make __CRT_INLINE always inline, use ceil instead of ceill.
Fixed linking when compiling with -O0, it should now work.

svn path=/trunk/; revision=41077
2009-05-23 15:02:28 +00:00
Timo Kreuzer
fc069970e4 Remove hBitmap from DC.rosdc and use DC.dclevel.pSurface instead.
svn path=/trunk/; revision=40509
2009-04-14 20:50:02 +00:00
Timo Kreuzer
189fc82964 win32k brush update:
- fix EBRUSHOBJ_vSetSolidBrushColor
- Initialize text and background brush in DC_AllocDC
- Update the DCs EBRUSHOBJs on demand
- Use the DCs EBRUSHOBJs for drawing where appropriate
This makes things faster and finally adds support for DC_BRUSH and DC_PEN

svn path=/trunk/; revision=40306
2009-04-01 01:49:18 +00:00
Timo Kreuzer
946deefb20 Rename IntGdiInitBrushInstance to EBRUSHOBJ_vInit and move it to engbrush.c. Add 2 FIXME comments.
svn path=/trunk/; revision=40145
2009-03-20 23:40:59 +00:00
Timo Kreuzer
87e87cd3bf Start to cleanup the mess that claims to be our brush implementation: Rename GDIBRUSHOBJ to BRUSH and GDIBRUSHINST to EBRUSHOBJ. Because that's what it is and nothing else. Rename several BRUSHOBJ_xxx functions to BRUSH_xxx, as they deal with a BRUSH, not a BRUSHOBJ.
There is a strict difference between a BRUSH and an (E)BRUSHOBJ. Please don't mix this up by giving them all names like BrushObj. Please use (proper!) hungarian notation.

Now the willing reader might actually get a clue how this stuff is supposed to work and maybe also realize how broken it is.

svn path=/trunk/; revision=40143
2009-03-20 22:40:14 +00:00
Timo Kreuzer
b2ab2d049e rename DC.Dc_attr to dcattr, DC.DcLevel to dclevel, just like in gdikdx. Some naming improvement, remove an excessive variable.
svn path=/trunk/; revision=40135
2009-03-20 14:16:01 +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
Timo Kreuzer
af62ba6188 Change most DC struct members to the names they have on Windows according to gdikdx
svn path=/trunk/; revision=40111
2009-03-20 01:35:49 +00:00
James Tabor
a27da8f7e8 - Patch by Evgeniy Boltik: Fix Rectangle, Ellipse, RoundRect and Polygon.
svn path=/trunk/; revision=40051
2009-03-16 03:21:00 +00:00
Timo Kreuzer
8560b3bcc3 Rename BITMAPOBJ to SURFACE as it's called on windows. Also rename related functions and variables.
svn path=/trunk/; revision=38645
2009-01-08 16:33:40 +00:00
James Tabor
09b382e570 Cleanup drawing lines and curves with round rect.
svn path=/trunk/; revision=34268
2008-07-02 18:12:07 +00:00
James Tabor
1f2c432f83 Fix build.
svn path=/trunk/; revision=34249
2008-07-02 07:54:01 +00:00
James Tabor
d170af286f Arc, RoundRect:
- Converted over to use the new draw/fill square algorithm for draw arcs and draw/fill round rects.
- Tested with (Area.exe) Yuan program. Getting better.



svn path=/trunk/; revision=34248
2008-07-02 07:47:23 +00:00
James Tabor
9f5ede7adb Arc, Ellipse:
- Converted over to use the new fill square algorithm for fill arcs and draw/fill ellipse.
- Tested with (Area.exe) Yuan program. Chord work and the CW/CCW works as it should.
- The pie angle still floats with aspect ratio of ellipse and not point fixed. Work in progress.


svn path=/trunk/; revision=34233
2008-07-01 13:30:44 +00:00
James Tabor
d20f879eaf Fix drawing pie fill aligment.
svn path=/trunk/; revision=34207
2008-06-30 05:11:39 +00:00
James Tabor
4d7d62eded Arc:
- Ported GraphApp draw arc fill algorithm. It was faster than X11. Include copyright license in header.
- Now we can draw pies and arcs and fill them, need to test chord fill.

svn path=/trunk/; revision=34169
2008-06-29 01:19:46 +00:00