2 * DIB driver initialization functions
4 * Copyright 2007 Jesse Allen
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
26 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(dibdrv
);
32 /**********************************************************************
35 BOOL
DIBDRV_CreateDC( HDC hdc
, DIBDRVPHYSDEV
**pdev
, LPCWSTR driver
, LPCWSTR device
,
36 LPCWSTR output
, const DEVMODEW
* initData
)
38 DIBDRVPHYSDEV
*physDev
;
40 physDev
= HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(*physDev
) );
41 if (!physDev
) return FALSE
;
49 /**********************************************************************
52 BOOL
DIBDRV_DeleteDC( DIBDRVPHYSDEV
*physDev
)
56 if (physDev
->bmp
->color_table
)
57 HeapFree( GetProcessHeap(), 0, physDev
->bmp
->color_table
);
58 HeapFree( GetProcessHeap(), 0, physDev
->bmp
);
60 HeapFree( GetProcessHeap(), 0, physDev
);
64 /**********************************************************************
67 INT
DIBDRV_ExtEscape( DIBDRVPHYSDEV
*physDev
, INT escape
, INT in_count
, LPCVOID in_data
,
68 INT out_count
, LPVOID out_data
)
74 /***********************************************************************
75 * DIBDRV_GetDeviceCaps
77 INT
DIBDRV_GetDeviceCaps( DIBDRVPHYSDEV
*physDev
, INT cap
)