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
e34191fc
Commit
e34191fc
authored
Aug 25, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
Aug 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change pixel format for 24 BPP surfaces when the DDraw BPP is 32.
parent
024e8812
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
main.c
dlls/ddraw/ddraw/main.c
+15
-0
No files found.
dlls/ddraw/ddraw/main.c
View file @
e34191fc
...
...
@@ -548,6 +548,21 @@ HRESULT common_off_screen_CreateSurface(
lpdsf
->
s
.
surface_desc
.
dwFlags
|=
DDSD_PIXELFORMAT
;
}
bpp
=
GET_BPP
(
lpdsf
->
s
.
surface_desc
);
if
(
bpp
!=
PFGET_BPP
(
This
->
d
->
directdraw_pixelformat
))
{
/* When the application is requesting a 24 bpp surface and the Direct Draw bpp
is set to 32, we 'upgrade' the requested bpp to 32 to make the blit faster
from off-screen surface to visible surfaces.
With this, Windows Media Player works in 32 bpp mode.
Lionel */
if
((
bpp
==
3
)
&&
(
PFGET_BPP
(
This
->
d
->
directdraw_pixelformat
)
==
4
))
{
TRACE
(
"Warning: 'upgrading' requested 24 bpp format to 32 bpp for efficiencies reasons
\n
"
);
TRACE
(
" some applications may have problems with it.
\n
"
);
bpp
=
PFGET_BPP
(
This
->
d
->
directdraw_pixelformat
);
lpdsf
->
s
.
surface_desc
.
ddpfPixelFormat
=
This
->
d
->
directdraw_pixelformat
;
}
}
}
if
(
lpdsf
->
s
.
surface_desc
.
dwFlags
&
DDSD_LPSURFACE
)
...
...
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