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
effc262f
Commit
effc262f
authored
Sep 29, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Sep 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for backbuffer with the formats A1R5G5B5 and X1R5G5B5.
parent
9a86a0b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
surface.c
dlls/wined3d/surface.c
+19
-0
No files found.
dlls/wined3d/surface.c
View file @
effc262f
...
...
@@ -758,6 +758,25 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
vcheckGLcall
(
"glDrawPixels"
);
}
break
;
case
WINED3DFMT_X1R5G5B5
:
{
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
|=
0x8000
;
data
++
;
size
--
;
}
}
case
WINED3DFMT_A1R5G5B5
:
{
glDrawPixels
(
This
->
lockedRect
.
right
-
This
->
lockedRect
.
left
,
(
This
->
lockedRect
.
bottom
-
This
->
lockedRect
.
top
)
-
1
,
GL_RGBA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
This
->
resource
.
allocatedMemory
);
vcheckGLcall
(
"glDrawPixels"
);
}
break
;
case
WINED3DFMT_R8G8B8
:
{
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