Fix problems with GlobalHandle and GlobalFree so results match Win98.
[wine/wine64.git] / graphics / ttydrv / dib.c
blob1b6ce4df0bb135258d761515902ee9c2d3a6c38a
1 /*
2 * TTY DC dib
4 * Copyright 1999 Patrik Stridvall
5 */
7 #include "bitmap.h"
8 #include "dc.h"
9 #include "ttydrv.h"
10 #include "winbase.h"
11 #include "debugtools.h"
13 DEFAULT_DEBUG_CHANNEL(ttydrv)
15 /***********************************************************************
16 * TTYDRV_BITMAP_CreateDIBSection
18 HBITMAP TTYDRV_BITMAP_CreateDIBSection(
19 DC *dc, BITMAPINFO *bmi, UINT usage,
20 LPVOID *bits, HANDLE section, DWORD offset)
22 FIXME("(%p, %p, %u, %p, 0x%04x, %ld): stub\n",
23 dc, bmi, usage, bits, section, offset);
25 return (HBITMAP) NULL;
28 /**********************************************************************
29 * TTYDRV_BITMAP_CreateDIBSection16
31 HBITMAP16 TTYDRV_DIB_CreateDIBSection16(
32 DC *dc, BITMAPINFO *bmi, UINT16 usage,
33 SEGPTR *bits, HANDLE section, DWORD offset)
35 FIXME("(%p, %p, %u, %p, 0x%04x, %ld): stub\n",
36 dc, bmi, usage, bits, section, offset);
38 return (HBITMAP16) NULL;
41 /***********************************************************************
42 * TTYDRV_BITMAP_DeleteDIBSection
44 void TTYDRV_BITMAP_DeleteDIBSection(BITMAPOBJ *bmp)
46 FIXME("(%p): stub\n", bmp);
49 /***********************************************************************
50 * TTYDRV_BITMAP_GetDIBits
52 INT TTYDRV_BITMAP_GetDIBits(
53 BITMAPOBJ *bmp, DC *dc, UINT startscan, UINT lines,
54 LPVOID bits, BITMAPINFO *info, UINT coloruse, HBITMAP hbitmap)
56 FIXME("(%p, %p, %u, %u, %p, %p, %u, 0x%04x): stub\n",
57 bmp, dc, startscan, lines, bits, info, coloruse, hbitmap);
59 return 0;
63 /***********************************************************************
64 * TTYDRV_BITMAP_SetDIBits
66 INT TTYDRV_BITMAP_SetDIBits(
67 BITMAPOBJ *bmp, DC *dc, UINT startscan, UINT lines,
68 LPCVOID bits, const BITMAPINFO *info, UINT coloruse, HBITMAP hbitmap)
70 FIXME("(%p, %p, %u, %u, %p, %p, %u, 0x%04x): stub\n",
71 bmp, dc, startscan, lines, bits, info, coloruse, hbitmap);
73 return 0;
76 /***********************************************************************
77 * TTYDRV_DC_SetDIBitsToDevice
79 INT TTYDRV_DC_SetDIBitsToDevice(DC *dc, INT xDest, INT yDest, DWORD cx,
80 DWORD cy, INT xSrc, INT ySrc,
81 UINT startscan, UINT lines, LPCVOID bits,
82 const BITMAPINFO *info, UINT coloruse)
84 FIXME("(%p, %d, %d, %ld, %ld, %d, %d, %u, %u, %p, %p, %u): stub\n",
85 dc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, bits, info, coloruse);
87 return 0;