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
2b8a7dca
Commit
2b8a7dca
authored
Sep 27, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Sep 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct a problem with locking nonpower 2 back and front buffers.
parent
f89c69c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
surface.c
dlls/wined3d/surface.c
+2
-1
No files found.
dlls/wined3d/surface.c
View file @
2b8a7dca
...
...
@@ -285,7 +285,8 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, D3DLOCKED_RE
This
->
resource
.
format
==
WINED3DFMT_DXT4
||
This
->
resource
.
format
==
WINED3DFMT_DXT5
)
/* DXT2/3/4/5 is 16 bytes per block */
pLockedRect
->
Pitch
=
(
This
->
currentDesc
.
Width
>>
2
)
<<
4
;
else
{
if
(
NP2_REPACK
==
wined3d_settings
.
nonpower2_mode
)
{
if
(
NP2_REPACK
==
wined3d_settings
.
nonpower2_mode
||
This
->
resource
.
usage
&
D3DUSAGE_RENDERTARGET
)
{
/* Front and back buffers are always lockes/unlocked on currentDesc.Width */
pLockedRect
->
Pitch
=
This
->
bytesPerPixel
*
This
->
currentDesc
.
Width
;
/* Bytes / row */
}
else
{
pLockedRect
->
Pitch
=
This
->
bytesPerPixel
*
This
->
pow2Width
;
...
...
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