4 * Copyright 1998,1999 Patrik Stridvall
10 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(ttydrv)
17 /***********************************************************************
18 * TTYDRV_DESKTOP_GetCursesRootWindow
20 * Return the Curses root window associated to the desktop.
23 WINDOW *TTYDRV_DESKTOP_GetCursesRootWindow(DESKTOP *pDesktop)
25 return TTYDRV_MONITOR_GetCursesRootWindow(pDesktop->pPrimaryMonitor);
27 #endif /* defined(HAVE_LIBCURSES) */
29 /***********************************************************************
30 * TTYDRV_DESKTOP_Initialize
32 void TTYDRV_DESKTOP_Initialize(DESKTOP *pDesktop)
34 TRACE("(%p): stub\n", pDesktop);
36 pDesktop->pPrimaryMonitor = &MONITOR_PrimaryMonitor;
39 /***********************************************************************
40 * TTYDRV_DESKTOP_Finalize
42 void TTYDRV_DESKTOP_Finalize(DESKTOP *pDesktop)
44 TRACE("(%p): stub\n", pDesktop);
47 /***********************************************************************
48 * TTYDRV_DESKTOP_GetScreenWidth
50 * Return the width of the screen associated to the desktop.
52 int TTYDRV_DESKTOP_GetScreenWidth(DESKTOP *pDesktop)
54 return MONITOR_GetWidth(pDesktop->pPrimaryMonitor);
57 /***********************************************************************
58 * TTYDRV_DESKTOP_GetScreenHeight
60 * Return the width of the screen associated to the desktop.
62 int TTYDRV_DESKTOP_GetScreenHeight(DESKTOP *pDesktop)
64 return MONITOR_GetHeight(pDesktop->pPrimaryMonitor);
67 /***********************************************************************
68 * TTYDRV_DESKTOP_GetScreenDepth
70 * Return the depth of the screen associated to the desktop.
72 int TTYDRV_DESKTOP_GetScreenDepth(DESKTOP *pDesktop)
74 return MONITOR_GetDepth(pDesktop->pPrimaryMonitor);