4 * Copyright 1998,1999 Patrik Stridvall
13 /***********************************************************************
14 * TTYDRV_MONITOR_Initialize
16 void TTYDRV_MONITOR_Initialize(MONITOR *pMonitor)
18 TTYDRV_MONITOR_DATA *pTTYMonitor = (TTYDRV_MONITOR_DATA *)
19 HeapAlloc(SystemHeap, 0, sizeof(TTYDRV_MONITOR_DATA));
21 pMonitor->pDriverData = pTTYMonitor;
23 pTTYMonitor->width = 640; /* FIXME: Screen width in pixels */
24 pTTYMonitor->height = 480; /* FIXME: Screen height in pixels */
25 pTTYMonitor->depth = 1; /* FIXME: Screen depth */
28 /***********************************************************************
29 * TTYDRV_MONITOR_Finalize
31 void TTYDRV_MONITOR_Finalize(MONITOR *pMonitor)
33 HeapFree(SystemHeap, 0, pMonitor->pDriverData);
36 /***********************************************************************
37 * TTYDRV_MONITOR_GetWidth
39 * Return the width of the monitor
41 int TTYDRV_MONITOR_GetWidth(MONITOR *pMonitor)
43 TTYDRV_MONITOR_DATA *pTTYMonitor =
44 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
46 return pTTYMonitor->width;
49 /***********************************************************************
50 * TTYDRV_MONITOR_GetHeight
52 * Return the height of the monitor
54 int TTYDRV_MONITOR_GetHeight(MONITOR *pMonitor)
56 TTYDRV_MONITOR_DATA *pTTYMonitor =
57 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
59 return pTTYMonitor->height;
62 /***********************************************************************
63 * TTYDRV_MONITOR_GetDepth
65 * Return the depth of the monitor
67 int TTYDRV_MONITOR_GetDepth(MONITOR *pMonitor)
69 TTYDRV_MONITOR_DATA *pTTYMonitor =
70 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
72 return pTTYMonitor->depth;