- Simplify monitors code
- fix few minor bugs (ie. not updating last error)
- Make monitor object more compatible to windows

svn path=/trunk/; revision=54197
This commit is contained in:
Rafal Harabien
2011-10-19 15:40:17 +00:00
parent 963dfffc01
commit c9134c871b
2 changed files with 376 additions and 346 deletions
@@ -4,30 +4,28 @@
typedef struct _MONITOR
{
HEAD head;
//
UNICODE_STRING DeviceName; /* name of the monitor */
PDEVOBJ *GdiDevice; /* pointer to the GDI device to
which this monitor is attached */
// This is the structure Windows uses:
// struct _MONITOR* pMonitorNext;
union {
DWORD dwMONFlags;
struct {
DWORD IsVisible:1;
DWORD IsPalette:1;
DWORD IsPrimary:1; /* wether this is the primary monitor */
};};
struct _MONITOR* pMonitorNext;
union
{
DWORD dwMONFlags;
struct
{
DWORD IsVisible: 1;
DWORD IsPalette: 1;
DWORD IsPrimary: 1; /* wether this is the primary monitor */
};
};
RECT rcMonitor;
RECT rcWork;
HRGN hrgnMonitor;
SHORT cFullScreen;
SHORT cWndStack;
HDEV hDev;
HDEV hDevReal;
// BYTE DockTargets[4][7];
// Use LIST_ENTRY
struct _MONITOR* Next; //Flink;
struct _MONITOR* Prev; //Blink;
// ReactOS specific fields:
UNICODE_STRING DeviceName; /* name of the monitor */
PDEVOBJ *GdiDevice; /* pointer to the GDI device to
which this monitor is attached */
} MONITOR, *PMONITOR;
NTSTATUS IntAttachMonitor(PDEVOBJ *pGdiDevice, ULONG DisplayNumber);
File diff suppressed because it is too large Load Diff