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
37b20062
Commit
37b20062
authored
May 22, 1999
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added some more debug output
- corrected a slight bug in DGA DirectDraw creation
parent
48126471
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
ddraw.c
graphics/ddraw.c
+16
-5
No files found.
graphics/ddraw.c
View file @
37b20062
...
...
@@ -1347,6 +1347,8 @@ static HRESULT WINAPI IDirectDrawSurface4Impl_GetPixelFormat(
*
pf
=
This
->
s
.
surface_desc
.
ddpfPixelFormat
;
_dump_pixelformat
(
pf
);
return
DD_OK
;
}
...
...
@@ -4479,18 +4481,27 @@ HRESULT WINAPI DGA_DirectDrawCreate( LPDIRECTDRAW *lplpDD, LPUNKNOWN pUnkOuter)
if
(
!
(
flags
&
XF86DGADirectPresent
))
MSG
(
"direct video is NOT PRESENT.
\n
"
);
TSXF86DGAGetVideo
(
display
,
DefaultScreen
(
display
),
&
addr
,
&
width
,
&
banksize
,
&
memsize
);
(
*
ilplpDD
)
->
e
.
dga
.
fb_width
=
width
;
TSXF86DGAGetViewPortSize
(
display
,
DefaultScreen
(
display
),
&
width
,
&
height
);
TSXF86DGASetViewPort
(
display
,
DefaultScreen
(
display
),
0
,
0
);
(
*
ilplpDD
)
->
e
.
dga
.
fb_height
=
height
;
TRACE
(
ddraw
,
"video framebuffer: begin %p, width %d,banksize %d,memsize %d
\n
"
,
addr
,
width
,
banksize
,
memsize
);
(
*
ilplpDD
)
->
e
.
dga
.
fb_width
=
width
;
(
*
ilplpDD
)
->
d
.
width
=
width
;
TRACE
(
ddraw
,
"viewport height: %d
\n
"
,
height
);
/* Get the screen dimensions as seen by Wine.
In that case, it may be better to ignore the -desktop mode and return the
real screen size => print a warning */
(
*
ilplpDD
)
->
d
.
height
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
(
*
ilplpDD
)
->
d
.
width
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
);
if
(((
*
ilplpDD
)
->
d
.
height
!=
height
)
||
((
*
ilplpDD
)
->
d
.
width
!=
width
))
WARN
(
ddraw
,
"You seem to be runnin in -desktop mode. This may prove dangerous in DGA mode...
\n
"
);
(
*
ilplpDD
)
->
e
.
dga
.
fb_addr
=
addr
;
(
*
ilplpDD
)
->
e
.
dga
.
fb_memsize
=
memsize
;
(
*
ilplpDD
)
->
e
.
dga
.
fb_banksize
=
banksize
;
TSXF86DGAGetViewPortSize
(
display
,
DefaultScreen
(
display
),
&
width
,
&
height
);
TSXF86DGASetViewPort
(
display
,
DefaultScreen
(
display
),
0
,
0
);
(
*
ilplpDD
)
->
e
.
dga
.
fb_height
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
#ifdef DIABLO_HACK
(
*
ilplpDD
)
->
e
.
dga
.
vpmask
=
1
;
#else
...
...
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