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
2854884a
Commit
2854884a
authored
Oct 22, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Always create a context for DIB_RGB_COLORS.
parent
a061d3a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dib.c
dlls/gdi32/dib.c
+4
-3
No files found.
dlls/gdi32/dib.c
View file @
2854884a
...
...
@@ -336,17 +336,17 @@ INT WINAPI SetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan,
BITMAPOBJ
*
bitmap
;
INT
result
=
0
;
if
(
coloruse
==
DIB_RGB_COLORS
)
hdc
=
CreateCompatibleDC
(
0
);
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
{
if
(
coloruse
==
DIB_RGB_COLORS
)
FIXME
(
"shouldn't require a DC for DIB_RGB_COLORS
\n
"
);
return
0
;
}
update_dc
(
dc
);
if
(
!
(
bitmap
=
GDI_GetObjPtr
(
hbitmap
,
OBJ_BITMAP
)))
{
release_dc_ptr
(
dc
);
if
(
coloruse
==
DIB_RGB_COLORS
)
DeleteDC
(
hdc
);
return
0
;
}
...
...
@@ -365,6 +365,7 @@ INT WINAPI SetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan,
done:
GDI_ReleaseObj
(
hbitmap
);
release_dc_ptr
(
dc
);
if
(
coloruse
==
DIB_RGB_COLORS
)
DeleteDC
(
hdc
);
return
result
;
}
...
...
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