Moved the 16 bit driver functions callout into the dir.
[wine] / windows / ttydrv / desktop.c
1 /*
2  * TTY desktop driver
3  *
4  * Copyright 1998,1999 Patrik Stridvall
5  *
6  */
7
8 #include "config.h"
9
10 #include "debugtools.h"
11 #include "desktop.h"
12 #include "monitor.h"
13 #include "ttydrv.h"
14
15 DEFAULT_DEBUG_CHANNEL(ttydrv)
16
17 /***********************************************************************
18  *              TTYDRV_DESKTOP_GetCursesRootWindow
19  *
20  * Return the Curses root window associated to the desktop.
21  */
22 #ifdef HAVE_LIBCURSES
23 WINDOW *TTYDRV_DESKTOP_GetCursesRootWindow(DESKTOP *pDesktop)
24 {
25   return TTYDRV_MONITOR_GetCursesRootWindow(pDesktop->pPrimaryMonitor);
26 }
27 #endif /* defined(HAVE_LIBCURSES) */
28
29 /***********************************************************************
30  *              TTYDRV_DESKTOP_Initialize
31  */
32 void TTYDRV_DESKTOP_Initialize(DESKTOP *pDesktop)
33 {
34   TRACE("(%p): stub\n", pDesktop);
35
36   pDesktop->pPrimaryMonitor = &MONITOR_PrimaryMonitor;
37 }
38
39 /***********************************************************************
40  *              TTYDRV_DESKTOP_Finalize
41  */
42 void TTYDRV_DESKTOP_Finalize(DESKTOP *pDesktop)
43 {
44   TRACE("(%p): stub\n", pDesktop);
45 }
46
47 /***********************************************************************
48  *              TTYDRV_DESKTOP_GetScreenWidth
49  *
50  * Return the width of the screen associated to the desktop.
51  */
52 int TTYDRV_DESKTOP_GetScreenWidth(DESKTOP *pDesktop)
53 {
54   return MONITOR_GetWidth(pDesktop->pPrimaryMonitor);
55 }
56
57 /***********************************************************************
58  *              TTYDRV_DESKTOP_GetScreenHeight
59  *
60  * Return the width of the screen associated to the desktop.
61  */
62 int TTYDRV_DESKTOP_GetScreenHeight(DESKTOP *pDesktop)
63 {
64   return MONITOR_GetHeight(pDesktop->pPrimaryMonitor);
65 }
66
67 /***********************************************************************
68  *              TTYDRV_DESKTOP_GetScreenDepth
69  *
70  * Return the depth of the screen associated to the desktop.
71  */
72 int TTYDRV_DESKTOP_GetScreenDepth(DESKTOP *pDesktop)
73 {
74   return MONITOR_GetDepth(pDesktop->pPrimaryMonitor);
75 }