Fixed background redrawing when control is covered. Fixed a really
[wine] / graphics / ttydrv / oembitmap.c
1 /*
2  * TTY DC OEM bitmap
3  *
4  * Copyright 1999 Patrik Stridvall
5  */
6
7 #include "bitmap.h"
8 #include "ttydrv.h"
9 #include "debugtools.h"
10
11 DEFAULT_DEBUG_CHANNEL(ttydrv)
12
13 /**********************************************************************
14  *              TTYDRV_DC_LoadOEMBitmap
15  */
16 static HANDLE TTYDRV_DC_LoadOEMBitmap(WORD resid)
17 {
18   HBITMAP hbitmap;
19
20   TRACE("(%d)\n", resid);
21  
22   hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
23   TTYDRV_DC_CreateBitmap(hbitmap);
24
25   return hbitmap;
26 }
27
28 /**********************************************************************
29  *              TTYDRV_DC_LoadOEMCursorIcon
30  */
31 static HANDLE TTYDRV_DC_LoadOEMCursorIcon(WORD resid, BOOL bCursor)
32 {
33   return (HANDLE) NULL;
34 }
35
36 /**********************************************************************
37  *              TTYDRV_DC_LoadOEMResource
38  */
39 HANDLE TTYDRV_DC_LoadOEMResource(WORD resid, WORD type)
40 {
41   switch(type)
42   {
43     case OEM_BITMAP:
44       return TTYDRV_DC_LoadOEMBitmap(resid);
45     case OEM_CURSOR:
46       return TTYDRV_DC_LoadOEMCursorIcon(resid, TRUE);
47     case OEM_ICON:
48       return TTYDRV_DC_LoadOEMCursorIcon(resid, FALSE);
49     default:
50       ERR("unknown type (%d)\n", type);
51   }
52
53   return (HANDLE) NULL;
54 }
55
56