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
1a2417d9
Commit
1a2417d9
authored
Jun 19, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the no longer needed DIB_CreateDIBSection export.
parent
e8950b29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
dib.c
dlls/gdi/dib.c
+4
-17
gdi32.spec
dlls/gdi/gdi32.spec
+0
-1
No files found.
dlls/gdi/dib.c
View file @
1a2417d9
...
...
@@ -1127,11 +1127,10 @@ HBITMAP16 WINAPI CreateDIBSection16 (HDC16 hdc, const BITMAPINFO *bmi, UINT16 us
}
/***********************************************************************
*
DIB_CreateDIBSection
*
CreateDIBSection (GDI32.@)
*/
HBITMAP
DIB_CreateDIBSection
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
UINT
usage
,
VOID
**
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
)
HBITMAP
WINAPI
CreateDIBSection
(
HDC
hdc
,
CONST
BITMAPINFO
*
bmi
,
UINT
usage
,
VOID
**
bits
,
HANDLE
section
,
DWORD
offset
)
{
HBITMAP
ret
=
0
;
DC
*
dc
;
...
...
@@ -1162,7 +1161,7 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, const BITMAPINFO *bmi, UINT usage,
dib
->
dsBm
.
bmType
=
0
;
dib
->
dsBm
.
bmWidth
=
width
;
dib
->
dsBm
.
bmHeight
=
height
>=
0
?
height
:
-
height
;
dib
->
dsBm
.
bmWidthBytes
=
ovr_pitch
?
ovr_pitch
:
DIB_GetDIBWidthBytes
(
width
,
bpp
);
dib
->
dsBm
.
bmWidthBytes
=
DIB_GetDIBWidthBytes
(
width
,
bpp
);
dib
->
dsBm
.
bmPlanes
=
planes
;
dib
->
dsBm
.
bmBitsPixel
=
bpp
;
dib
->
dsBm
.
bmBits
=
NULL
;
...
...
@@ -1229,8 +1228,6 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, const BITMAPINFO *bmi, UINT usage,
mapBits
=
MapViewOfFile
(
section
,
FILE_MAP_ALL_ACCESS
,
0
,
mapOffset
,
mapSize
);
if
(
mapBits
)
dib
->
dsBm
.
bmBits
=
(
char
*
)
mapBits
+
(
offset
-
mapOffset
);
}
else
if
(
ovr_pitch
&&
offset
)
dib
->
dsBm
.
bmBits
=
(
LPVOID
)
offset
;
else
{
offset
=
0
;
...
...
@@ -1287,13 +1284,3 @@ error:
HeapFree
(
GetProcessHeap
(),
0
,
dib
);
return
0
;
}
/***********************************************************************
* CreateDIBSection (GDI32.@)
*/
HBITMAP
WINAPI
CreateDIBSection
(
HDC
hdc
,
CONST
BITMAPINFO
*
bmi
,
UINT
usage
,
VOID
**
bits
,
HANDLE
section
,
DWORD
offset
)
{
return
DIB_CreateDIBSection
(
hdc
,
bmi
,
usage
,
bits
,
section
,
offset
,
0
);
}
dlls/gdi/gdi32.spec
View file @
1a2417d9
...
...
@@ -519,6 +519,5 @@
################################################################
# Wine dll separation hacks, these will go away, don't use them
#
@ cdecl DIB_CreateDIBSection(long ptr long ptr long long long)
@ cdecl GDI_GetObjPtr(long long)
@ cdecl GDI_ReleaseObj(long)
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