Added DebugBreak.
[wine] / windows / ttydrv / monitor.c
1 /*
2  * TTY monitor driver
3  *
4  * Copyright 1998,1999 Patrik Stridvall
5  *
6  */
7
8 #include "heap.h"
9 #include "monitor.h"
10 #include "windef.h"
11 #include "ttydrv.h"
12
13 /***********************************************************************
14  *              TTYDRV_MONITOR_Initialize
15  */
16 void TTYDRV_MONITOR_Initialize(MONITOR *pMonitor)
17 {
18   TTYDRV_MONITOR_DATA *pTTYMonitor = (TTYDRV_MONITOR_DATA *) 
19     HeapAlloc(SystemHeap, 0, sizeof(TTYDRV_MONITOR_DATA));
20
21   pMonitor->pDriverData = pTTYMonitor;
22
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 */
26 }
27
28 /***********************************************************************
29  *              TTYDRV_MONITOR_Finalize
30  */
31 void TTYDRV_MONITOR_Finalize(MONITOR *pMonitor)
32 {
33   HeapFree(SystemHeap, 0, pMonitor->pDriverData);
34 }
35
36 /***********************************************************************
37  *              TTYDRV_MONITOR_IsSingleWindow
38  */
39 BOOL TTYDRV_MONITOR_IsSingleWindow(MONITOR *pMonitor)
40 {
41   return TRUE;
42 }
43
44 /***********************************************************************
45  *              TTYDRV_MONITOR_GetWidth
46  *
47  * Return the width of the monitor
48  */
49 int TTYDRV_MONITOR_GetWidth(MONITOR *pMonitor)
50 {
51   TTYDRV_MONITOR_DATA *pTTYMonitor =
52     (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
53
54   return pTTYMonitor->width;
55 }
56
57 /***********************************************************************
58  *              TTYDRV_MONITOR_GetHeight
59  *
60  * Return the height of the monitor
61  */
62 int TTYDRV_MONITOR_GetHeight(MONITOR *pMonitor)
63 {
64   TTYDRV_MONITOR_DATA *pTTYMonitor =
65     (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
66
67   return pTTYMonitor->height;
68 }
69
70 /***********************************************************************
71  *              TTYDRV_MONITOR_GetDepth
72  *
73  * Return the depth of the monitor
74  */
75 int TTYDRV_MONITOR_GetDepth(MONITOR *pMonitor)
76 {
77   TTYDRV_MONITOR_DATA *pTTYMonitor =
78     (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
79
80   return pTTYMonitor->depth;
81 }
82
83 /***********************************************************************
84  *              TTYDRV_MONITOR_GetScreenSaveActive
85  *
86  * Returns the active status of the screen saver
87  */
88 BOOL TTYDRV_MONITOR_GetScreenSaveActive(MONITOR *pMonitor)
89 {
90   return FALSE;
91 }
92
93 /***********************************************************************
94  *              TTYDRV_MONITOR_SetScreenSaveActive
95  *
96  * Activate/Deactivate the screen saver
97  */
98 void TTYDRV_MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate)
99 {
100 }
101
102 /***********************************************************************
103  *              TTYDRV_MONITOR_GetScreenSaveTimeout
104  *
105  * Return the screen saver timeout
106  */
107 int TTYDRV_MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor)
108 {
109   return 0;
110 }
111
112 /***********************************************************************
113  *              TTYDRV_MONITOR_SetScreenSaveTimeout
114  *
115  * Set the screen saver timeout
116  */
117 void TTYDRV_MONITOR_SetScreenSaveTimeout(
118   MONITOR *pMonitor, int nTimeout)
119 {
120 }