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
fcfbb46d
Commit
fcfbb46d
authored
Mar 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: GetDIBColorTable doesn't need to be part of the DC driver interface.
parent
e6d94864
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
18 deletions
+9
-18
dib.c
dlls/gdi32/dib.c
+9
-14
driver.c
dlls/gdi32/driver.c
+0
-1
init.c
dlls/gdi32/enhmfdrv/init.c
+0
-1
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-1
init.c
dlls/gdi32/mfdrv/init.c
+0
-1
No files found.
dlls/gdi32/dib.c
View file @
fcfbb46d
...
...
@@ -453,29 +453,24 @@ UINT WINAPI SetDIBColorTable( HDC hdc, UINT startpos, UINT entries, CONST RGBQUA
UINT
WINAPI
GetDIBColorTable
(
HDC
hdc
,
UINT
startpos
,
UINT
entries
,
RGBQUAD
*
colors
)
{
DC
*
dc
;
BITMAPOBJ
*
bitmap
;
UINT
result
=
0
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
0
;
if
(
dc
->
funcs
->
pGetDIBColorTable
)
result
=
dc
->
funcs
->
pGetDIBColorTable
(
dc
->
physDev
,
startpos
,
entries
,
colors
);
else
if
((
bitmap
=
GDI_GetObjPtr
(
dc
->
hBitmap
,
OBJ_BITMAP
)))
{
BITMAPOBJ
*
bitmap
=
GDI_GetObjPtr
(
dc
->
hBitmap
,
OBJ_BITMAP
);
if
(
bitmap
)
/* Check if currently selected bitmap is a DIB */
if
(
bitmap
->
color_table
)
{
/* Check if currently selected bitmap is a DIB */
if
(
bitmap
->
color_table
)
if
(
startpos
<
bitmap
->
nb_colors
)
{
if
(
startpos
<
bitmap
->
nb_colors
)
{
if
(
startpos
+
entries
>
bitmap
->
nb_colors
)
entries
=
bitmap
->
nb_colors
-
startpos
;
memcpy
(
colors
,
bitmap
->
color_table
+
startpos
,
entries
*
sizeof
(
RGBQUAD
));
result
=
entries
;
}
if
(
startpos
+
entries
>
bitmap
->
nb_colors
)
entries
=
bitmap
->
nb_colors
-
startpos
;
memcpy
(
colors
,
bitmap
->
color_table
+
startpos
,
entries
*
sizeof
(
RGBQUAD
));
result
=
entries
;
}
GDI_ReleaseObj
(
dc
->
hBitmap
);
}
GDI_ReleaseObj
(
dc
->
hBitmap
);
}
release_dc_ptr
(
dc
);
return
result
;
...
...
dlls/gdi32/driver.c
View file @
fcfbb46d
...
...
@@ -110,7 +110,6 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC
(
GdiComment
);
GET_FUNC
(
GetBitmapBits
);
GET_FUNC
(
GetCharWidth
);
GET_FUNC
(
GetDIBColorTable
);
GET_FUNC
(
GetDIBits
);
GET_FUNC
(
GetDeviceCaps
);
GET_FUNC
(
GetDeviceGammaRamp
);
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
fcfbb46d
...
...
@@ -72,7 +72,6 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_GdiComment
,
/* pGdiComment */
NULL
,
/* pGetBitmapBits */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDIBColorTable */
NULL
,
/* pGetDIBits */
EMFDRV_GetDeviceCaps
,
/* pGetDeviceCaps */
NULL
,
/* pGetDeviceGammaRamp */
...
...
dlls/gdi32/gdi_private.h
View file @
fcfbb46d
...
...
@@ -114,7 +114,6 @@ typedef struct tagDC_FUNCS
BOOL
(
CDECL
*
pGdiComment
)(
PHYSDEV
,
UINT
,
CONST
BYTE
*
);
LONG
(
CDECL
*
pGetBitmapBits
)(
HBITMAP
,
void
*
,
LONG
);
BOOL
(
CDECL
*
pGetCharWidth
)(
PHYSDEV
,
UINT
,
UINT
,
LPINT
);
UINT
(
CDECL
*
pGetDIBColorTable
)(
PHYSDEV
,
UINT
,
UINT
,
RGBQUAD
*
);
INT
(
CDECL
*
pGetDIBits
)(
PHYSDEV
,
HBITMAP
,
UINT
,
UINT
,
LPVOID
,
BITMAPINFO
*
,
UINT
);
INT
(
CDECL
*
pGetDeviceCaps
)(
PHYSDEV
,
INT
);
BOOL
(
CDECL
*
pGetDeviceGammaRamp
)(
PHYSDEV
,
LPVOID
);
...
...
dlls/gdi32/mfdrv/init.c
View file @
fcfbb46d
...
...
@@ -70,7 +70,6 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL
,
/* pGdiComment */
NULL
,
/* pGetBitmapBits */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDIBColorTable */
NULL
,
/* pGetDIBits */
MFDRV_GetDeviceCaps
,
/* pGetDeviceCaps */
NULL
,
/* pGetDeviceGammaRamp */
...
...
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