Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e8c89484
Commit
e8c89484
authored
Feb 04, 1999
by
Patrik Stridvall
Committed by
Alexandre Julliard
Feb 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of the new monitor abstraction.
parent
36bbd621
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
monitor.h
include/monitor.h
+33
-0
multimon.c
windows/multimon.c
+47
-0
No files found.
include/monitor.h
0 → 100644
View file @
e8c89484
/*
* Monitor definitions
*
*/
#ifndef __WINE_MONITOR_H
#define __WINE_MONITOR_H
struct
tagMONITOR_DRIVER
;
typedef
struct
tagMONITOR
{
struct
tagMONITOR_DRIVER
*
pDriver
;
void
*
pDriverData
;
}
MONITOR
;
typedef
struct
tagMONITOR_DRIVER
{
void
(
*
pInitialize
)(
MONITOR
*
);
void
(
*
pFinalize
)(
MONITOR
*
);
int
(
*
pGetWidth
)(
MONITOR
*
);
int
(
*
pGetHeight
)(
MONITOR
*
);
int
(
*
pGetDepth
)(
MONITOR
*
);
}
MONITOR_DRIVER
;
extern
MONITOR
MONITOR_PrimaryMonitor
;
extern
void
MONITOR_Initialize
(
MONITOR
*
pMonitor
);
extern
void
MONITOR_Finalize
(
MONITOR
*
pMonitor
);
extern
int
MONITOR_GetWidth
(
MONITOR
*
pMonitor
);
extern
int
MONITOR_GetHeight
(
MONITOR
*
pMonitor
);
extern
int
MONITOR_GetDepth
(
MONITOR
*
pMonitor
);
#endif
/* __WINE_MONITOR_H */
windows/multimon.c
View file @
e8c89484
...
...
@@ -4,10 +4,57 @@
* Copyright 1998 Turchanov Sergey
*/
#include "monitor.h"
#include "windows.h"
/**********************************************************************/
#define xPRIMARY_MONITOR ((HMONITOR)0x12340042)
MONITOR
MONITOR_PrimaryMonitor
;
/***********************************************************************
* MONITOR_Initialize
*/
void
MONITOR_Initialize
(
MONITOR
*
pMonitor
)
{
pMonitor
->
pDriver
->
pInitialize
(
pMonitor
);
}
/***********************************************************************
* MONITOR_Finalize
*/
void
MONITOR_Finalize
(
MONITOR
*
pMonitor
)
{
pMonitor
->
pDriver
->
pFinalize
(
pMonitor
);
}
/***********************************************************************
* MONITOR_GetWidth
*/
int
MONITOR_GetWidth
(
MONITOR
*
pMonitor
)
{
return
pMonitor
->
pDriver
->
pGetWidth
(
pMonitor
);
}
/***********************************************************************
* MONITOR_GetHeight
*/
int
MONITOR_GetHeight
(
MONITOR
*
pMonitor
)
{
return
pMonitor
->
pDriver
->
pGetHeight
(
pMonitor
);
}
/***********************************************************************
* MONITOR_GetDepth
*/
int
MONITOR_GetDepth
(
MONITOR
*
pMonitor
)
{
return
pMonitor
->
pDriver
->
pGetDepth
(
pMonitor
);
}
/**********************************************************************/
HMONITOR
WINAPI
MonitorFromPoint
(
POINT32
ptScreenCoords
,
DWORD
dwFlags
)
{
if
((
dwFlags
&
(
MONITOR_DEFAULTTOPRIMARY
|
MONITOR_DEFAULTTONEAREST
))
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment