Fix for 64-bit negative seek value.
[wine/multimedia.git] / graphics / ttydrv / oembitmap.c
blobf67b04a587cbd2e2a4d6ecd9c684dc09eb97475a
1 /*
2 * TTY DC OEM bitmap
4 * Copyright 1999 Patrik Stridvall
5 */
7 #include "bitmap.h"
8 #include "ttydrv.h"
9 #include "debugtools.h"
11 DEFAULT_DEBUG_CHANNEL(ttydrv)
13 /**********************************************************************
14 * TTYDRV_DC_LoadOEMBitmap
16 static HANDLE TTYDRV_DC_LoadOEMBitmap(WORD resid)
18 HBITMAP hbitmap;
20 TRACE("(%d)\n", resid);
22 hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
23 TTYDRV_DC_CreateBitmap(hbitmap);
25 return hbitmap;
28 /**********************************************************************
29 * TTYDRV_DC_LoadOEMCursorIcon
31 static HANDLE TTYDRV_DC_LoadOEMCursorIcon(WORD resid, BOOL bCursor)
33 return (HANDLE) NULL;
36 /**********************************************************************
37 * TTYDRV_DC_LoadOEMResource
39 HANDLE TTYDRV_DC_LoadOEMResource(WORD resid, WORD type)
41 switch(type)
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);
53 return (HANDLE) NULL;