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
6b91f5b3
Commit
6b91f5b3
authored
Aug 03, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Aug 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the apha channel to opaque when locking X8R8G8B8 backbuffers.
parent
70442d5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
surface.c
dlls/wined3d/surface.c
+14
-1
No files found.
dlls/wined3d/surface.c
View file @
6b91f5b3
...
...
@@ -22,6 +22,7 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_surface
);
...
...
@@ -696,7 +697,19 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
vcheckGLcall
(
"glDrawPixels"
);
}
break
;
case
WINED3DFMT_X8R8G8B8
:
/* FIXME: there's no alpha change with D3DFMT_X8R8G8B8 but were using GL_BGRA */
case
WINED3DFMT_X8R8G8B8
:
/* make sure the X byte is set to alpha on, since it
could be any random value this fixes the intro move in Pirates! */
{
int
size
;
unsigned
int
*
data
;
data
=
(
unsigned
int
*
)
This
->
resource
.
allocatedMemory
;
size
=
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
*
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
);
while
(
size
>
0
)
{
*
data
|=
0xFF000000
;
data
++
;
size
--
;
}
}
case
WINED3DFMT_A8R8G8B8
:
{
glPixelStorei
(
GL_PACK_SWAP_BYTES
,
TRUE
);
...
...
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