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
251ed43b
Commit
251ed43b
authored
Apr 18, 1999
by
Lionel Ulmer
Committed by
Alexandre Julliard
Apr 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed 'GetDisplayMode' to return the mode previously set by
'SetDisplayMode' (and not the current monitor mode).
parent
c4a01c3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ddraw.c
graphics/ddraw.c
+4
-4
No files found.
graphics/ddraw.c
View file @
251ed43b
...
...
@@ -3970,8 +3970,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_GetDisplayMode(
ICOM_THIS
(
IDirectDraw2Impl
,
iface
);
TRACE
(
ddraw
,
"(%p)->(%p)
\n
"
,
This
,
lpddsfd
);
lpddsfd
->
dwFlags
=
DDSD_HEIGHT
|
DDSD_WIDTH
|
DDSD_PITCH
|
DDSD_BACKBUFFERCOUNT
|
DDSD_PIXELFORMAT
|
DDSD_CAPS
;
lpddsfd
->
dwHeight
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
)
;
lpddsfd
->
dwWidth
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
)
;
lpddsfd
->
dwHeight
=
This
->
d
.
height
;
lpddsfd
->
dwWidth
=
This
->
d
.
width
;
lpddsfd
->
lPitch
=
This
->
e
.
dga
.
fb_width
*
This
->
d
.
directdraw_pixelformat
.
x
.
dwRGBBitCount
/
8
;
lpddsfd
->
dwBackBufferCount
=
1
;
lpddsfd
->
x
.
dwRefreshRate
=
60
;
...
...
@@ -3989,8 +3989,8 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetDisplayMode(
ICOM_THIS
(
IDirectDraw2Impl
,
iface
);
TRACE
(
ddraw
,
"(%p)->GetDisplayMode(%p)
\n
"
,
This
,
lpddsfd
);
lpddsfd
->
dwFlags
=
DDSD_HEIGHT
|
DDSD_WIDTH
|
DDSD_PITCH
|
DDSD_BACKBUFFERCOUNT
|
DDSD_PIXELFORMAT
|
DDSD_CAPS
;
lpddsfd
->
dwHeight
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
)
;
lpddsfd
->
dwWidth
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
)
;
lpddsfd
->
dwHeight
=
This
->
d
.
height
;
lpddsfd
->
dwWidth
=
This
->
d
.
width
;
lpddsfd
->
lPitch
=
lpddsfd
->
dwWidth
*
This
->
d
.
directdraw_pixelformat
.
x
.
dwRGBBitCount
/
8
;
lpddsfd
->
dwBackBufferCount
=
1
;
lpddsfd
->
x
.
dwRefreshRate
=
60
;
...
...
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