Changed the CreateDC driver entry point to use an HDC instead of a DC
[wine] / dlls / ttydrv / bitmap.c
1 /*
2  * TTY bitmap driver
3  *
4  * Copyright 1999 Patrik Stridvall
5  *
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.
10  *
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.
15  *
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "config.h"
22
23 #include <string.h>
24
25 #include "ttydrv.h"
26 #include "winbase.h"
27 #include "wine/debug.h"
28
29 WINE_DEFAULT_DEBUG_CHANNEL(ttydrv);
30
31
32 /***********************************************************************
33  *           GetBitmapBits   (TTYDRV.@)
34  */
35 LONG TTYDRV_GetBitmapBits(HBITMAP hbitmap, void *bits, LONG count)
36 {
37     FIXME("(%p, %p, %ld): stub\n", hbitmap, bits, count);
38     memset(bits, 0, count);
39     return count;
40 }
41
42 /***********************************************************************
43  *           SetBitmapBits   (TTYDRV.@)
44  */
45 LONG TTYDRV_SetBitmapBits(HBITMAP hbitmap, const void *bits, LONG count)
46 {
47     FIXME("(%p, %p, %ld): stub\n", hbitmap, bits, count);
48     return count;
49 }
50
51 /***********************************************************************
52  *              TTYDRV_BITMAP_CreateDIBSection
53  */
54 HBITMAP TTYDRV_BITMAP_CreateDIBSection(
55   TTYDRV_PDEVICE *physDev, BITMAPINFO *bmi, UINT usage,
56   LPVOID *bits, HANDLE section, DWORD offset)
57 {
58   FIXME("(%p, %p, %u, %p, %p, %ld): stub\n",
59         physDev->hdc, bmi, usage, bits, section, offset);
60
61   return NULL;
62 }
63
64 /***********************************************************************
65  *              TTYDRV_DC_SetDIBitsToDevice
66  */
67 INT TTYDRV_DC_SetDIBitsToDevice(TTYDRV_PDEVICE *physDev, INT xDest, INT yDest, DWORD cx,
68                                 DWORD cy, INT xSrc, INT ySrc,
69                                 UINT startscan, UINT lines, LPCVOID bits,
70                                 const BITMAPINFO *info, UINT coloruse)
71 {
72   FIXME("(%p, %d, %d, %ld, %ld, %d, %d, %u, %u, %p, %p, %u): stub\n",
73         physDev->hdc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, bits, info, coloruse);
74
75   return 0;
76 }