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
1a829769
Commit
1a829769
authored
Jul 05, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Flip WINED3DFMT_R8G8B8 to GL_RGB.
parent
17518ca9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
surface.c
dlls/wined3d/surface.c
+1
-1
utils.c
dlls/wined3d/utils.c
+1
-1
No files found.
dlls/wined3d/surface.c
View file @
1a829769
...
...
@@ -883,7 +883,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
case
WINED3DFMT_R8G8B8
:
{
glDrawPixels
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
,
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
-
1
,
GL_
RGB
,
GL_UNSIGNED_BYTE
,
This
->
resource
.
allocatedMemory
);
GL_
BGR
,
GL_UNSIGNED_BYTE
,
This
->
resource
.
allocatedMemory
);
vcheckGLcall
(
"glDrawPixels"
);
}
break
;
...
...
dlls/wined3d/utils.c
View file @
1a829769
...
...
@@ -60,7 +60,7 @@ static const PixelFormatDesc formats[] = {
{
WINED3DFMT_A8P8
,
0x0000ff00
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_P8
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_COLOR_INDEX8_EXT
,
GL_COLOR_INDEX
,
GL_UNSIGNED_BYTE
},
/* Standard ARGB formats. Keep WINED3DFMT_R8G8B8(=20) at position 20 */
{
WINED3DFMT_R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
3
,
FALSE
,
GL_RGB8
,
GL_
RGB
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
3
,
FALSE
,
GL_RGB8
,
GL_
BGR
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8R8G8B8
,
0xff000000
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_X8R8G8B8
,
0x0
,
0x00ff0000
,
0x0000ff00
,
0x000000ff
,
4
,
FALSE
,
GL_RGB8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
},
{
WINED3DFMT_R5G6B5
,
0x0
,
0x0000F800
,
0x000007e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
},
...
...
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