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
aa3fa9a5
Commit
aa3fa9a5
authored
Feb 22, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid a not necessary CreateDC call.
parent
826f89f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
wing.c
dlls/gdi32/wing.c
+2
-4
No files found.
dlls/gdi32/wing.c
View file @
aa3fa9a5
...
...
@@ -96,13 +96,11 @@ HDC16 WINAPI WinGCreateDC16(void)
*/
BOOL16
WINAPI
WinGRecommendDIBFormat16
(
BITMAPINFO
*
bmpi
)
{
static
const
WCHAR
szDisplayW
[]
=
{
'D'
,
'I'
,
'S'
,
'P'
,
'L'
,
'A'
,
'Y'
,
'\0'
};
HDC
hdc
;
TRACE
(
"(%p)
\n
"
,
bmpi
);
if
(
!
bmpi
)
return
FALSE
;
hdc
=
CreateDCW
(
szDisplayW
,
NULL
,
NULL
,
NULL
);
bmpi
->
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
bmpi
->
bmiHeader
.
biWidth
=
320
;
bmpi
->
bmiHeader
.
biHeight
=
-
1
;
...
...
@@ -114,7 +112,7 @@ BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi)
bmpi
->
bmiHeader
.
biYPelsPerMeter
=
0
;
bmpi
->
bmiHeader
.
biClrUsed
=
0
;
bmpi
->
bmiHeader
.
biClrImportant
=
0
;
DeleteDC
(
hdc
);
return
TRUE
;
}
...
...
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