Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4352934b
Commit
4352934b
authored
Jan 18, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use SetupFullscreenWindow() to make the window fullscreen.
parent
61125221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
device.c
dlls/wined3d/device.c
+2
-9
No files found.
dlls/wined3d/device.c
View file @
4352934b
...
...
@@ -1512,7 +1512,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
HDC
hdc
;
int
bpp
=
0
;
RECT
clip_rc
;
DWORD
style
;
/* Get info on the current display setup */
hdc
=
GetDC
(
0
);
...
...
@@ -1528,19 +1527,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
MultiByteToWideChar
(
CP_ACP
,
0
,
"Gamers CG"
,
-
1
,
devmode
.
dmDeviceName
,
CCHDEVICENAME
);
ChangeDisplaySettingsExW
(
devmode
.
dmDeviceName
,
&
devmode
,
object
->
win_handle
,
CDS_FULLSCREEN
,
NULL
);
/* Make popup window, remove caption and borders */
style
=
GetWindowLongW
(
object
->
win_handle
,
GWL_STYLE
);
style
&=
~
WS_CAPTION
;
SetWindowLongW
(
object
->
win_handle
,
GWL_STYLE
,
style
|
WS_POPUP
);
SetWindowPos
(
object
->
win_handle
,
HWND_TOP
,
0
,
0
,
*
(
pPresentationParameters
->
BackBufferWidth
),
*
(
pPresentationParameters
->
BackBufferHeight
),
SWP_FRAMECHANGED
);
/* For GetDisplayMode */
This
->
ddraw_width
=
devmode
.
dmPelsWidth
;
This
->
ddraw_height
=
devmode
.
dmPelsHeight
;
This
->
ddraw_format
=
*
(
pPresentationParameters
->
BackBufferFormat
);
IWineD3DDeviceImpl_SetupFullscreenWindow
(
iface
,
object
->
win_handle
);
/* And finally clip mouse to our screen */
SetRect
(
&
clip_rc
,
0
,
0
,
devmode
.
dmPelsWidth
,
devmode
.
dmPelsHeight
);
ClipCursor
(
&
clip_rc
);
...
...
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