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
896aaa67
Commit
896aaa67
authored
Nov 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of holdbitmap from wineD3DSurface_DIB.
parent
604d1540
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
device.c
dlls/wined3d/device.c
+0
-3
surface.c
dlls/wined3d/surface.c
+1
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
896aaa67
...
...
@@ -5220,10 +5220,7 @@ static HRESULT updateSurfaceDesc(struct wined3d_surface *surface,
/* Reallocate proper memory for the front and back buffer and adjust their sizes */
if
(
surface
->
flags
&
SFLAG_DIBSECTION
)
{
/* Release the DC */
SelectObject
(
surface
->
hDC
,
surface
->
dib
.
holdbitmap
);
DeleteDC
(
surface
->
hDC
);
/* Release the DIB section */
DeleteObject
(
surface
->
dib
.
DIBsection
);
surface
->
dib
.
bitmap_data
=
NULL
;
surface
->
resource
.
allocatedMemory
=
NULL
;
...
...
dlls/wined3d/surface.c
View file @
896aaa67
...
...
@@ -97,10 +97,7 @@ static void surface_cleanup(struct wined3d_surface *surface)
if
(
surface
->
flags
&
SFLAG_DIBSECTION
)
{
/* Release the DC. */
SelectObject
(
surface
->
hDC
,
surface
->
dib
.
holdbitmap
);
DeleteDC
(
surface
->
hDC
);
/* Release the DIB section. */
DeleteObject
(
surface
->
dib
.
DIBsection
);
surface
->
dib
.
bitmap_data
=
NULL
;
surface
->
resource
.
allocatedMemory
=
NULL
;
...
...
@@ -511,7 +508,7 @@ static HRESULT surface_create_dib_section(struct wined3d_surface *surface)
/* Now allocate a DC. */
surface
->
hDC
=
CreateCompatibleDC
(
0
);
surface
->
dib
.
holdbitmap
=
SelectObject
(
surface
->
hDC
,
surface
->
dib
.
DIBsection
);
SelectObject
(
surface
->
hDC
,
surface
->
dib
.
DIBsection
);
TRACE
(
"Using wined3d palette %p.
\n
"
,
surface
->
palette
);
SelectPalette
(
surface
->
hDC
,
surface
->
palette
?
surface
->
palette
->
hpal
:
0
,
FALSE
);
...
...
@@ -3139,9 +3136,7 @@ HRESULT CDECL wined3d_surface_set_mem(struct wined3d_surface *surface, void *mem
/* Do I have to copy the old surface content? */
if
(
surface
->
flags
&
SFLAG_DIBSECTION
)
{
SelectObject
(
surface
->
hDC
,
surface
->
dib
.
holdbitmap
);
DeleteDC
(
surface
->
hDC
);
/* Release the DIB section. */
DeleteObject
(
surface
->
dib
.
DIBsection
);
surface
->
dib
.
bitmap_data
=
NULL
;
surface
->
resource
.
allocatedMemory
=
NULL
;
...
...
dlls/wined3d/wined3d_private.h
View file @
896aaa67
...
...
@@ -1949,7 +1949,6 @@ typedef struct wineD3DSurface_DIB {
HBITMAP
DIBsection
;
void
*
bitmap_data
;
UINT
bitmap_size
;
HGDIOBJ
holdbitmap
;
BOOL
client_memory
;
}
wineD3DSurface_DIB
;
...
...
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