DIB Engine: initial pass-through implementation
[wine/hacks.git] / dlls / winedib.drv / palette.c
blob28fae0935d28f628b4656efa618f9309055450c4
1 /*
2 * DIBDRV palette 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);
28 /***********************************************************************
29 * DIBDRV_RealizePalette
31 UINT DIBDRV_RealizePalette( DIBDRVPHYSDEV *physDev, HPALETTE hpal, BOOL primary )
33 TRACE("physDev:%p, hpal:%p, primary:%s\n", physDev, hpal, (primary ? "TRUE" : "FALSE"));
35 ONCE(FIXME("stub\n"));
36 return _DIBDRV_GetDisplayDriver()->pRealizePalette(physDev->X11PhysDev, hpal, primary);
39 /***********************************************************************
40 * DIBDRV_UnrealizePalette
42 BOOL DIBDRV_UnrealizePalette( HPALETTE hpal )
44 TRACE("hpal:%p\n", hpal);
46 ONCE(FIXME("stub\n"));
47 return _DIBDRV_GetDisplayDriver()->pUnrealizePalette(hpal);
50 /***********************************************************************
51 * DIBDRV_GetSystemPaletteEntries
53 UINT DIBDRV_GetSystemPaletteEntries( DIBDRVPHYSDEV *physDev, UINT start, UINT count,
54 LPPALETTEENTRY entries )
56 TRACE("physDev:%p, start:%d, count:%d, entries:%p\n", physDev, start, count, entries);
58 ONCE(FIXME("stub\n"));
59 return _DIBDRV_GetDisplayDriver()->pGetSystemPaletteEntries(physDev->X11PhysDev, start, count, entries);
62 /***********************************************************************
63 * DIBDRV_GetNearestColor
65 COLORREF DIBDRV_GetNearestColor( DIBDRVPHYSDEV *physDev, COLORREF color )
67 TRACE("physDev:%p, color:%x\n", physDev, color);
69 ONCE(FIXME("stub\n"));
70 return _DIBDRV_GetDisplayDriver()->pGetNearestColor(physDev->X11PhysDev, color);
73 /***********************************************************************
74 * DIBDRV_RealizeDefaultPalette
76 UINT DIBDRV_RealizeDefaultPalette( DIBDRVPHYSDEV *physDev )
78 TRACE("physDev:%p\n", physDev);
80 ONCE(FIXME("stub\n"));
81 return _DIBDRV_GetDisplayDriver()->pRealizeDefaultPalette(physDev->X11PhysDev);
84 BOOL DIBDRV_GetICMProfile(DIBDRVPHYSDEV *physDev, LPDWORD lpcbName, LPWSTR lpszFilename)
86 TRACE("physDev:%p, lpcpName:%p, lpszFilename:%p\n", physDev, lpcbName, lpszFilename);
88 ONCE(FIXME("stub\n"));
89 return _DIBDRV_GetDisplayDriver()->pGetICMProfile(physDev->X11PhysDev, lpcbName, lpszFilename);