Release 990523.
[wine/testsucceed.git] / windows / ttydrv / monitor.c
blobbf5297c449dd941342bae222edee0347410c3969
1 /*
2 * TTY monitor driver
4 * Copyright 1998,1999 Patrik Stridvall
6 */
8 #include "heap.h"
9 #include "monitor.h"
10 #include "windef.h"
11 #include "ttydrv.h"
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_IsSingleWindow
39 BOOL TTYDRV_MONITOR_IsSingleWindow(MONITOR *pMonitor)
41 return TRUE;
44 /***********************************************************************
45 * TTYDRV_MONITOR_GetWidth
47 * Return the width of the monitor
49 int TTYDRV_MONITOR_GetWidth(MONITOR *pMonitor)
51 TTYDRV_MONITOR_DATA *pTTYMonitor =
52 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
54 return pTTYMonitor->width;
57 /***********************************************************************
58 * TTYDRV_MONITOR_GetHeight
60 * Return the height of the monitor
62 int TTYDRV_MONITOR_GetHeight(MONITOR *pMonitor)
64 TTYDRV_MONITOR_DATA *pTTYMonitor =
65 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
67 return pTTYMonitor->height;
70 /***********************************************************************
71 * TTYDRV_MONITOR_GetDepth
73 * Return the depth of the monitor
75 int TTYDRV_MONITOR_GetDepth(MONITOR *pMonitor)
77 TTYDRV_MONITOR_DATA *pTTYMonitor =
78 (TTYDRV_MONITOR_DATA *) pMonitor->pDriverData;
80 return pTTYMonitor->depth;
83 /***********************************************************************
84 * TTYDRV_MONITOR_GetScreenSaveActive
86 * Returns the active status of the screen saver
88 BOOL TTYDRV_MONITOR_GetScreenSaveActive(MONITOR *pMonitor)
90 return FALSE;
93 /***********************************************************************
94 * TTYDRV_MONITOR_SetScreenSaveActive
96 * Activate/Deactivate the screen saver
98 void TTYDRV_MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate)
102 /***********************************************************************
103 * TTYDRV_MONITOR_GetScreenSaveTimeout
105 * Return the screen saver timeout
107 int TTYDRV_MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor)
109 return 0;
112 /***********************************************************************
113 * TTYDRV_MONITOR_SetScreenSaveTimeout
115 * Set the screen saver timeout
117 void TTYDRV_MONITOR_SetScreenSaveTimeout(
118 MONITOR *pMonitor, int nTimeout)