DIB Engine: initial pass-through implementation
[wine/hacks.git] / dlls / winedib.drv / graphics.c
blobb746af27a661da62e4aae49fb17133ccd25dba23
1 /*
2 * DIBDRV implementation of GDI driver graphics functions
4 * Copyright 2009 Massimo Del Fedele
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
22 #include "wine/port.h"
24 #include "dibdrv.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(dibdrv);
28 /***********************************************************************
29 * DIBDRV_Arc
31 BOOL DIBDRV_Arc( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right, INT bottom,
32 INT xstart, INT ystart, INT xend, INT yend )
34 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d, xstart:%d, ystart:%d, xend:%d, yend:%d\n",
35 physDev, left, top, right, bottom, xstart, ystart, xend, yend);
37 ONCE(FIXME("stub\n"));
38 return _DIBDRV_GetDisplayDriver()->pArc(physDev->X11PhysDev, left, top, right, bottom,
39 xstart, ystart, xend, yend);
42 /***********************************************************************
43 * DIBDRV_Chord
45 BOOL DIBDRV_Chord( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right, INT bottom,
46 INT xstart, INT ystart, INT xend, INT yend )
48 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d, xstart:%d, ystart:%d, xend:%d, yend:%d\n",
49 physDev, left, top, right, bottom, xstart, ystart, xend, yend);
51 ONCE(FIXME("stub\n"));
52 return _DIBDRV_GetDisplayDriver()->pChord(physDev->X11PhysDev, left, top, right, bottom,
53 xstart, ystart, xend, yend);
56 /***********************************************************************
57 * DIBDRV_Ellipse
59 BOOL DIBDRV_Ellipse( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right, INT bottom )
61 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d\n",
62 physDev, left, top, right, bottom);
64 ONCE(FIXME("stub\n"));
65 return _DIBDRV_GetDisplayDriver()->pEllipse(physDev->X11PhysDev, left, top, right, bottom);
68 /**********************************************************************
69 * DIBDRV_ExtFloodFill
71 BOOL DIBDRV_ExtFloodFill( DIBDRVPHYSDEV *physDev, INT x, INT y, COLORREF color,
72 UINT fillType )
74 TRACE("physDev:%p, x:%d, y:%d, color:%x, fillType:%d\n",
75 physDev, x, y, color, fillType);
77 ONCE(FIXME("stub\n"));
78 return _DIBDRV_GetDisplayDriver()->pExtFloodFill(physDev->X11PhysDev, x, y, color, fillType);
81 /***********************************************************************
82 * DIBDRV_GetDCOrgEx
84 BOOL DIBDRV_GetDCOrgEx( DIBDRVPHYSDEV *physDev, LPPOINT lpp )
86 TRACE("physDev:%p, lpp:%p\n", physDev, lpp);
88 ONCE(FIXME("stub\n"));
89 return _DIBDRV_GetDisplayDriver()->pGetDCOrgEx(physDev->X11PhysDev, lpp);
92 /***********************************************************************
93 * DIBDRV_GetPixel
95 COLORREF DIBDRV_GetPixel( DIBDRVPHYSDEV *physDev, INT x, INT y )
97 TRACE("physDev:%p, x:%d, y:%d\n", physDev, x, y);
99 ONCE(FIXME("stub\n"));
100 return _DIBDRV_GetDisplayDriver()->pGetPixel(physDev->X11PhysDev, x, y);
103 /***********************************************************************
104 * DIBDRV_LineTo
106 BOOL DIBDRV_LineTo( DIBDRVPHYSDEV *physDev, INT x, INT y )
108 TRACE("physDev:%p, x:%d, y:%d\n", physDev, x, y);
110 ONCE(FIXME("stub\n"));
111 return _DIBDRV_GetDisplayDriver()->pLineTo(physDev->X11PhysDev, x, y);
114 /***********************************************************************
115 * DIBDRV_PaintRgn
117 BOOL DIBDRV_PaintRgn( DIBDRVPHYSDEV *physDev, HRGN hrgn )
119 TRACE("physDev:%p, hrgn:%p\n", physDev, hrgn);
121 ONCE(FIXME("stub\n"));
122 return _DIBDRV_GetDisplayDriver()->pPaintRgn(physDev->X11PhysDev, hrgn);
125 /***********************************************************************
126 * DIBDRV_Pie
128 BOOL DIBDRV_Pie( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right, INT bottom,
129 INT xstart, INT ystart, INT xend, INT yend )
131 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d, xstart:%d, ystart:%d, xend:%d, yend:%d\n",
132 physDev, left, top, right, bottom, xstart, ystart, xend, yend);
134 ONCE(FIXME("stub\n"));
135 return _DIBDRV_GetDisplayDriver()->pPie(physDev->X11PhysDev, left, top, right, bottom,
136 xstart, ystart, xend, yend);
139 /**********************************************************************
140 * DIBDRV_Polygon
142 BOOL DIBDRV_Polygon( DIBDRVPHYSDEV *physDev, const POINT* pt, INT count )
144 TRACE("physDev:%p, pt:%p, count:%d\n", physDev, pt, count);
146 ONCE(FIXME("stub\n"));
147 return _DIBDRV_GetDisplayDriver()->pPolygon(physDev->X11PhysDev, pt, count);
150 /**********************************************************************
151 * DIBDRV_Polyline
153 BOOL DIBDRV_Polyline( DIBDRVPHYSDEV *physDev, const POINT* pt, INT count )
155 TRACE("physDev:%p, pt:%p, count:%d\n", physDev, pt, count);
157 ONCE(FIXME("stub\n"));
158 return _DIBDRV_GetDisplayDriver()->pPolyline(physDev->X11PhysDev, pt, count);
161 /**********************************************************************
162 * DIBDRV_PolyPolygon
164 BOOL DIBDRV_PolyPolygon( DIBDRVPHYSDEV *physDev, const POINT* pt, const INT* counts, UINT polygons)
166 TRACE("physDev:%p, pt:%p, counts:%p, polygons:%d\n", physDev, pt, counts, polygons);
168 ONCE(FIXME("stub\n"));
169 return _DIBDRV_GetDisplayDriver()->pPolyPolygon(physDev->X11PhysDev, pt, counts, polygons);
172 /**********************************************************************
173 * DIBDRV_PolyPolyline
175 BOOL DIBDRV_PolyPolyline( DIBDRVPHYSDEV *physDev, const POINT* pt, const DWORD* counts,
176 DWORD polylines )
178 TRACE("physDev:%p, pt:%p, counts:%p, polylines:%d\n", physDev, pt, counts, polylines);
180 ONCE(FIXME("stub\n"));
181 return _DIBDRV_GetDisplayDriver()->pPolyPolyline(physDev->X11PhysDev, pt, counts, polylines);
184 /***********************************************************************
185 * DIBDRV_Rectangle
187 BOOL DIBDRV_Rectangle( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right, INT bottom)
189 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d\n",
190 physDev, left, top, right, bottom);
192 ONCE(FIXME("stub\n"));
193 return _DIBDRV_GetDisplayDriver()->pRectangle(physDev->X11PhysDev, left, top, right, bottom);
196 /***********************************************************************
197 * DIBDRV_RoundRect
199 BOOL DIBDRV_RoundRect( DIBDRVPHYSDEV *physDev, INT left, INT top, INT right,
200 INT bottom, INT ell_width, INT ell_height )
202 TRACE("physDev:%p, left:%d, top:%d, right:%d, bottom:%d, ell_width:%d, ell_height:%d\n",
203 physDev, left, top, right, bottom, ell_width, ell_height);
205 ONCE(FIXME("stub\n"));
206 return _DIBDRV_GetDisplayDriver()->pRoundRect(physDev->X11PhysDev, left, top, right, bottom,
207 ell_width, ell_height);
210 /***********************************************************************
211 * DIBDRV_SetPixel
213 COLORREF DIBDRV_SetPixel( DIBDRVPHYSDEV *physDev, INT x, INT y, COLORREF color )
215 TRACE("physDev:%p, x:%d, y:%d, color:%x\n", physDev, x, y, color);
217 ONCE(FIXME("stub\n"));
218 return _DIBDRV_GetDisplayDriver()->pSetPixel(physDev->X11PhysDev, x, y, color);
221 /***********************************************************************
222 * DIBDRV_SetDCOrg
224 DWORD DIBDRV_SetDCOrg( DIBDRVPHYSDEV *physDev, INT x, INT y )
226 TRACE("physDev:%p, x:%d, y:%d\n", physDev, x, y);
228 ONCE(FIXME("stub\n"));
229 return _DIBDRV_GetDisplayDriver()->pSetDCOrg(physDev->X11PhysDev, x, y);