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
ee5d72b1
Commit
ee5d72b1
authored
Dec 31, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Dec 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Added support for WINED3DFMT_X4R4G4B4.
parent
3275450c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
directx.c
dlls/wined3d/directx.c
+3
-0
surface.c
dlls/wined3d/surface.c
+19
-0
No files found.
dlls/wined3d/directx.c
View file @
ee5d72b1
...
...
@@ -1073,6 +1073,9 @@ static BOOL IWineD3DImpl_IsGLXFBConfigCompatibleWithRenderFmt(WineD3D_Context* c
case WINED3DFMT_A1R5G5B5:
if (5 == rb && 5 == gb && 5 == bb && 1 == ab) return TRUE;
break;
case WINED3DFMT_X4R4G4B4:
if (16 == buf_sz && 4 == rb && 4 == gb && 4 == bb) return TRUE;
break;
case WINED3DFMT_R5G6B5:
if (5 == rb && 6 == gb && 5 == bb) return TRUE;
break;
...
...
dlls/wined3d/surface.c
View file @
ee5d72b1
...
...
@@ -752,6 +752,25 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
glRasterPos3i
(
This
->
lockedRect
.
left
,
This
->
lockedRect
.
top
,
1
);
vcheckGLcall
(
"glRasterPos2f"
);
switch
(
This
->
resource
.
format
)
{
case
WINED3DFMT_X4R4G4B4
:
{
int
size
;
unsigned
short
*
data
;
data
=
(
unsigned
short
*
)
This
->
resource
.
allocatedMemory
;
size
=
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
*
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
);
while
(
size
>
0
)
{
*
data
|=
0xF000
;
data
++
;
size
--
;
}
}
case
WINED3DFMT_A4R4G4B4
:
{
glDrawPixels
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
,
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
-
1
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
,
This
->
resource
.
allocatedMemory
);
vcheckGLcall
(
"glDrawPixels"
);
}
break
;
case
WINED3DFMT_R5G6B5
:
{
glDrawPixels
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
,
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
-
1
,
...
...
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