47dce0e6672206de033bea9784fd6bbf895dfa29
[wine/hacks.git] / dlls / winedib.drv / dib.c
blob47dce0e6672206de033bea9784fd6bbf895dfa29
1 /*
2 * DIBDRV device-independent bitmaps
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_CreateDIBSection
31 HBITMAP DIBDRV_CreateDIBSection( DIBDRVPHYSDEV *physDev, HBITMAP hbitmap,
32 const BITMAPINFO *bmi, UINT usage )
34 TRACE("physDev:%p, hbitmap:%p, bmi:%p, usage:%d\n", physDev, hbitmap, bmi, usage);
36 ONCE(FIXME("stub\n"));
37 return _DIBDRV_GetDisplayDriver()->pCreateDIBSection(physDev->X11PhysDev, hbitmap, bmi, usage);
40 /***********************************************************************
41 * DIBDRV_GetDIBits
43 INT DIBDRV_GetDIBits( DIBDRVPHYSDEV *physDev, HBITMAP hbitmap, UINT startscan,
44 UINT lines, LPCVOID bits, const BITMAPINFO *bmi, UINT coloruse )
46 TRACE("physDev:%p, hbitmap:%p, startscan:%d, lines:%d, bits:%p, bmi:%p, coloruse:%d\n",
47 physDev, hbitmap, startscan, lines, bits, bmi, coloruse);
49 ONCE(FIXME("stub\n"));
50 return _DIBDRV_GetDisplayDriver()->pGetDIBits(physDev->X11PhysDev, hbitmap, startscan, lines, bits, bmi, coloruse);
53 /***********************************************************************
54 * DIBDRV_SetDIBColorTable
56 UINT DIBDRV_SetDIBColorTable( DIBDRVPHYSDEV *physDev, UINT start, UINT count,
57 const RGBQUAD *colors )
59 TRACE("physDev:%p, start:%d, count:%d, colors:%p\n", physDev, start, count, colors);
61 ONCE(FIXME("stub\n"));
62 return _DIBDRV_GetDisplayDriver()->pSetDIBColorTable(physDev->X11PhysDev, start, count, colors);
65 /***********************************************************************
66 * DIBDRV_SetDIBits
68 INT DIBDRV_SetDIBits( DIBDRVPHYSDEV *physDev, HBITMAP hbitmap, UINT startscan,
69 UINT lines, LPCVOID bits, const BITMAPINFO *info, UINT coloruse )
71 TRACE("physDev:%p, hbitmap:%p, startscan:%d, lines:%d, bits:%p, bmi:%p, coloruse:%d\n",
72 physDev, hbitmap, startscan, lines, bits, info, coloruse);
74 ONCE(FIXME("stub\n"));
75 return _DIBDRV_GetDisplayDriver()->pSetDIBits(physDev->X11PhysDev, hbitmap, startscan, lines, bits, info, coloruse);
78 /*************************************************************************
79 * DIBDRV_SetDIBitsToDevice
81 INT DIBDRV_SetDIBitsToDevice( DIBDRVPHYSDEV *physDev, INT xDest, INT yDest, DWORD cx,
82 DWORD cy, INT xSrc, INT ySrc,
83 UINT startscan, UINT lines, LPCVOID bits,
84 const BITMAPINFO *info, UINT coloruse )
86 TRACE("physDev:%p, xDest:%d, yDest:%d, cx:%x, cy:%x, xSrc:%d, ySrc:%d, startscan:%d, lines:%d, bits:%p, info:%p, coloruse:%d\n",
87 physDev, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, bits, info, coloruse);
89 ONCE(FIXME("stub\n"));
90 return _DIBDRV_GetDisplayDriver()->pSetDIBitsToDevice(physDev->X11PhysDev, xDest, yDest, cx, cy, xSrc, ySrc,
91 startscan, lines, bits, info, coloruse);