DIB Engine: initial pass-through implementation
[wine/hacks.git] / dlls / winedib.drv / pen_brush.c
blob1e992e0d96e1d764691ddd57d7f192bf9a1b7126
1 /*
2 * DIBDRV pen objects
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);
29 /***********************************************************************
30 * DIBDRV_SelectPen
32 HPEN DIBDRV_SelectPen( DIBDRVPHYSDEV *physDev, HPEN hpen )
34 TRACE("physDev:%p, hpen:%p\n", physDev, hpen);
36 ONCE(FIXME("stub\n"));
37 return _DIBDRV_GetDisplayDriver()->pSelectPen(physDev->X11PhysDev, hpen);
40 /***********************************************************************
41 * DIBDRV_SetDCPenColor
43 COLORREF DIBDRV_SetDCPenColor( DIBDRVPHYSDEV *physDev, COLORREF crColor )
45 TRACE("physDev:%p, crColor:%x\n", physDev, crColor);
47 ONCE(FIXME("stub\n"));
48 return _DIBDRV_GetDisplayDriver()->pSetDCPenColor(physDev->X11PhysDev, crColor);
51 /***********************************************************************
52 * DIBDRV_SelectBrush
54 HBRUSH DIBDRV_SelectBrush( DIBDRVPHYSDEV *physDev, HBRUSH hbrush )
56 TRACE("physDev:%p, hbrush:%p\n", physDev, hbrush);
58 ONCE(FIXME("stub\n"));
59 return _DIBDRV_GetDisplayDriver()->pSelectBrush(physDev->X11PhysDev, hbrush);
62 /***********************************************************************
63 * DIBDRV_SetDCBrushColor
65 COLORREF DIBDRV_SetDCBrushColor( DIBDRVPHYSDEV *physDev, COLORREF crColor )
67 TRACE("physDev:%p, crColor:%x\n", physDev, crColor);
69 ONCE(FIXME("stub\n"));
70 return _DIBDRV_GetDisplayDriver()->pSetDCBrushColor(physDev->X11PhysDev, crColor);
73 /***********************************************************************
74 * SetROP2
76 INT DIBDRV_SetROP2( DIBDRVPHYSDEV *physDev, INT rop )
78 INT prevRop;
80 TRACE("physDev:%p, rop:%x\n", physDev, rop);
82 ONCE(FIXME("stub\n"));
83 prevRop = physDev->rop2;
84 physDev->rop2 = rop;
85 return prevRop;
86 /* note : X11 Driver don't have SetROP2() function exported */
89 /***********************************************************************
90 * SetBkColor
92 COLORREF DIBDRV_SetBkColor( DIBDRVPHYSDEV *physDev, COLORREF color )
94 TRACE("physDev:%p, color:%x\n", physDev, color);
96 ONCE(FIXME("stub\n"));
97 return _DIBDRV_GetDisplayDriver()->pSetBkColor(physDev->X11PhysDev, color);