1999-11-24 00:43:29 +01:00
|
|
|
/*
|
|
|
|
* TTY DC OEM bitmap
|
|
|
|
*
|
|
|
|
* Copyright 1999 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "bitmap.h"
|
|
|
|
#include "ttydrv.h"
|
1999-12-12 00:08:48 +01:00
|
|
|
#include "debugtools.h"
|
1999-11-24 00:43:29 +01:00
|
|
|
|
|
|
|
DEFAULT_DEBUG_CHANNEL(ttydrv)
|
|
|
|
|
|
|
|
/**********************************************************************
|
1999-12-12 00:08:48 +01:00
|
|
|
* TTYDRV_DC_LoadOEMBitmap
|
1999-11-24 00:43:29 +01:00
|
|
|
*/
|
1999-12-12 00:08:48 +01:00
|
|
|
static HANDLE TTYDRV_DC_LoadOEMBitmap(WORD resid)
|
1999-11-24 00:43:29 +01:00
|
|
|
{
|
|
|
|
HBITMAP hbitmap;
|
|
|
|
|
1999-12-12 00:08:48 +01:00
|
|
|
TRACE("(%d)\n", resid);
|
1999-11-24 00:43:29 +01:00
|
|
|
|
1999-12-12 00:08:48 +01:00
|
|
|
hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
|
|
|
|
TTYDRV_DC_CreateBitmap(hbitmap);
|
|
|
|
|
1999-11-24 00:43:29 +01:00
|
|
|
return hbitmap;
|
|
|
|
}
|
1999-12-12 00:08:48 +01:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* TTYDRV_DC_LoadOEMCursorIcon
|
|
|
|
*/
|
|
|
|
static HANDLE TTYDRV_DC_LoadOEMCursorIcon(WORD resid, BOOL bCursor)
|
|
|
|
{
|
|
|
|
return (HANDLE) NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* TTYDRV_DC_LoadOEMResource
|
|
|
|
*/
|
|
|
|
HANDLE TTYDRV_DC_LoadOEMResource(WORD resid, WORD type)
|
|
|
|
{
|
|
|
|
switch(type)
|
|
|
|
{
|
|
|
|
case OEM_BITMAP:
|
|
|
|
return TTYDRV_DC_LoadOEMBitmap(resid);
|
|
|
|
case OEM_CURSOR:
|
|
|
|
return TTYDRV_DC_LoadOEMCursorIcon(resid, TRUE);
|
|
|
|
case OEM_ICON:
|
|
|
|
return TTYDRV_DC_LoadOEMCursorIcon(resid, FALSE);
|
|
|
|
default:
|
|
|
|
ERR("unknown type (%d)\n", type);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (HANDLE) NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|