1999-02-04 11:12:55 +01:00
|
|
|
/*
|
|
|
|
* Monitor definitions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MONITOR_H
|
|
|
|
#define __WINE_MONITOR_H
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
#include "windef.h"
|
|
|
|
|
1999-02-04 11:12:55 +01:00
|
|
|
typedef struct tagMONITOR
|
|
|
|
{
|
2000-03-25 18:30:13 +01:00
|
|
|
RECT rect;
|
|
|
|
int depth;
|
1999-02-04 11:12:55 +01:00
|
|
|
} MONITOR;
|
|
|
|
|
|
|
|
extern MONITOR MONITOR_PrimaryMonitor;
|
|
|
|
|
2000-03-25 18:30:13 +01:00
|
|
|
static int inline MONITOR_GetWidth(MONITOR *pMonitor)
|
|
|
|
{
|
|
|
|
return pMonitor->rect.right - pMonitor->rect.left;
|
|
|
|
}
|
1999-02-04 11:12:55 +01:00
|
|
|
|
2000-03-25 18:30:13 +01:00
|
|
|
static int inline MONITOR_GetHeight(MONITOR *pMonitor)
|
|
|
|
{
|
|
|
|
return pMonitor->rect.bottom - pMonitor->rect.top;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int inline MONITOR_GetDepth(MONITOR *pMonitor)
|
|
|
|
{
|
|
|
|
return pMonitor->depth;
|
|
|
|
}
|
1999-04-01 10:16:08 +02:00
|
|
|
|
2000-03-25 18:30:13 +01:00
|
|
|
#endif /* __WINE_MONITOR_H */
|