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
dc1aeeb2
Commit
dc1aeeb2
authored
Jan 07, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the SetDIBColorTable driver entry point.
parent
b00e7039
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
9 additions
and
70 deletions
+9
-70
dib.c
dlls/gdi32/dib.c
+8
-3
dc.c
dlls/gdi32/dibdrv/dc.c
+0
-19
driver.c
dlls/gdi32/driver.c
+0
-6
init.c
dlls/gdi32/enhmfdrv/init.c
+0
-1
init.c
dlls/gdi32/mfdrv/init.c
+0
-1
init.c
dlls/wineps.drv/init.c
+0
-1
dib.c
dlls/winex11.drv/dib.c
+0
-34
init.c
dlls/winex11.drv/init.c
+0
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
xrender.c
dlls/winex11.drv/xrender.c
+0
-1
gdi_driver.h
include/wine/gdi_driver.h
+1
-2
No files found.
dlls/gdi32/dib.c
View file @
dc1aeeb2
...
...
@@ -898,8 +898,6 @@ UINT WINAPI SetDIBColorTable( HDC hdc, UINT startpos, UINT entries, CONST RGBQUA
if
((
bitmap
=
GDI_GetObjPtr
(
dc
->
hBitmap
,
OBJ_BITMAP
)))
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pSetDIBColorTable
);
/* Check if currently selected bitmap is a DIB */
if
(
bitmap
->
color_table
)
{
...
...
@@ -910,7 +908,14 @@ UINT WINAPI SetDIBColorTable( HDC hdc, UINT startpos, UINT entries, CONST RGBQUA
}
}
GDI_ReleaseObj
(
dc
->
hBitmap
);
physdev
->
funcs
->
pSetDIBColorTable
(
physdev
,
startpos
,
entries
,
colors
);
if
(
result
)
/* update colors of selected objects */
{
SetTextColor
(
hdc
,
dc
->
textColor
);
SetBkColor
(
hdc
,
dc
->
backgroundColor
);
SelectObject
(
hdc
,
dc
->
hPen
);
SelectObject
(
hdc
,
dc
->
hBrush
);
}
}
release_dc_ptr
(
dc
);
return
result
;
...
...
dlls/gdi32/dibdrv/dc.c
View file @
dc1aeeb2
...
...
@@ -382,24 +382,6 @@ static void dibdrv_SetDeviceClipping( PHYSDEV dev, HRGN rgn )
}
/***********************************************************************
* dibdrv_SetDIBColorTable
*/
static
UINT
dibdrv_SetDIBColorTable
(
PHYSDEV
dev
,
UINT
pos
,
UINT
count
,
const
RGBQUAD
*
colors
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSetDIBColorTable
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
TRACE
(
"(%p, %d, %d, %p)
\n
"
,
dev
,
pos
,
count
,
colors
);
if
(
pdev
->
dib
.
color_table
)
/* force re-creating the brush bits */
{
pdev
->
brush
.
rop
=
-
1
;
pdev
->
pen_brush
.
rop
=
-
1
;
}
return
next
->
funcs
->
pSetDIBColorTable
(
next
,
pos
,
count
,
colors
);
}
/***********************************************************************
* dibdrv_ChoosePixelFormat
*/
static
INT
dibdrv_ChoosePixelFormat
(
PHYSDEV
dev
,
const
PIXELFORMATDESCRIPTOR
*
pfd
)
...
...
@@ -684,7 +666,6 @@ const struct gdi_dc_funcs dib_driver =
NULL
,
/* pSetBkMode */
dibdrv_SetDCBrushColor
,
/* pSetDCBrushColor */
dibdrv_SetDCPenColor
,
/* pSetDCPenColor */
dibdrv_SetDIBColorTable
,
/* pSetDIBColorTable */
NULL
,
/* pSetDIBitsToDevice */
dibdrv_SetDeviceClipping
,
/* pSetDeviceClipping */
dibdrv_SetDeviceGammaRamp
,
/* pSetDeviceGammaRamp */
...
...
dlls/gdi32/driver.c
View file @
dc1aeeb2
...
...
@@ -572,11 +572,6 @@ static COLORREF nulldrv_SetDCPenColor( PHYSDEV dev, COLORREF color )
return
color
;
}
static
UINT
nulldrv_SetDIBColorTable
(
PHYSDEV
dev
,
UINT
pos
,
UINT
count
,
const
RGBQUAD
*
colors
)
{
return
0
;
}
static
void
nulldrv_SetDeviceClipping
(
PHYSDEV
dev
,
HRGN
rgn
)
{
}
...
...
@@ -832,7 +827,6 @@ const struct gdi_dc_funcs null_driver =
nulldrv_SetBkMode
,
/* pSetBkMode */
nulldrv_SetDCBrushColor
,
/* pSetDCBrushColor */
nulldrv_SetDCPenColor
,
/* pSetDCPenColor */
nulldrv_SetDIBColorTable
,
/* pSetDIBColorTable */
nulldrv_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
nulldrv_SetDeviceClipping
,
/* pSetDeviceClipping */
nulldrv_SetDeviceGammaRamp
,
/* pSetDeviceGammaRamp */
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
dc1aeeb2
...
...
@@ -139,7 +139,6 @@ static const struct gdi_dc_funcs EMFDRV_Funcs =
EMFDRV_SetBkMode
,
/* pSetBkMode */
EMFDRV_SetDCBrushColor
,
/* pSetDCBrushColor*/
EMFDRV_SetDCPenColor
,
/* pSetDCPenColor*/
NULL
,
/* pSetDIBColorTable */
EMFDRV_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
...
...
dlls/gdi32/mfdrv/init.c
View file @
dc1aeeb2
...
...
@@ -184,7 +184,6 @@ static const struct gdi_dc_funcs MFDRV_Funcs =
MFDRV_SetBkMode
,
/* pSetBkMode */
MFDRV_SetDCBrushColor
,
/* pSetDCBrushColor*/
MFDRV_SetDCPenColor
,
/* pSetDCPenColor*/
NULL
,
/* pSetDIBColorTable */
MFDRV_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
...
...
dlls/wineps.drv/init.c
View file @
dc1aeeb2
...
...
@@ -922,7 +922,6 @@ static const struct gdi_dc_funcs psdrv_funcs =
NULL
,
/* pSetBkMode */
PSDRV_SetDCBrushColor
,
/* pSetDCBrushColor */
PSDRV_SetDCPenColor
,
/* pSetDCPenColor */
NULL
,
/* pSetDIBColorTable */
NULL
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
...
...
dlls/winex11.drv/dib.c
View file @
dc1aeeb2
...
...
@@ -4016,40 +4016,6 @@ void X11DRV_DIB_DeleteDIBSection(X_PHYSBITMAP *physBitmap, DIBSECTION *dib)
DeleteCriticalSection
(
&
physBitmap
->
lock
);
}
/***********************************************************************
* SetDIBColorTable (X11DRV.@)
*/
UINT
X11DRV_SetDIBColorTable
(
PHYSDEV
dev
,
UINT
start
,
UINT
count
,
const
RGBQUAD
*
colors
)
{
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
DIBSECTION
dib
;
UINT
ret
=
0
;
X_PHYSBITMAP
*
physBitmap
=
physDev
->
bitmap
;
if
(
!
physBitmap
)
return
0
;
GetObjectW
(
physBitmap
->
hbitmap
,
sizeof
(
dib
),
&
dib
);
if
(
physBitmap
->
colorMap
&&
start
<
physBitmap
->
nColorMap
)
{
UINT
end
=
count
+
start
;
if
(
end
>
physBitmap
->
nColorMap
)
end
=
physBitmap
->
nColorMap
;
/*
* Changing color table might change the mapping between
* DIB colors and X11 colors and thus alter the visible state
* of the bitmap object.
*/
/*
* FIXME we need to recalculate the pen, brush, text and bkgnd pixels here,
* at least for a 1 bpp dibsection
*/
X11DRV_DIB_Lock
(
physBitmap
,
DIB_Status_AppMod
);
X11DRV_DIB_GenColorMap
(
physDev
,
physBitmap
->
colorMap
,
DIB_RGB_COLORS
,
dib
.
dsBm
.
bmBitsPixel
,
colors
,
start
,
end
);
X11DRV_DIB_Unlock
(
physBitmap
,
TRUE
);
ret
=
end
-
start
;
}
return
ret
;
}
/***********************************************************************
* X11DRV_DIB_CreateDIBFromBitmap
...
...
dlls/winex11.drv/init.c
View file @
dc1aeeb2
...
...
@@ -561,7 +561,6 @@ static const struct gdi_dc_funcs x11drv_funcs =
NULL
,
/* pSetBkMode */
X11DRV_SetDCBrushColor
,
/* pSetDCBrushColor */
X11DRV_SetDCPenColor
,
/* pSetDCPenColor */
X11DRV_SetDIBColorTable
,
/* pSetDIBColorTable */
NULL
,
/* pSetDIBitsToDevice */
X11DRV_SetDeviceClipping
,
/* pSetDeviceClipping */
X11DRV_SetDeviceGammaRamp
,
/* pSetDeviceGammaRamp */
...
...
dlls/winex11.drv/x11drv.h
View file @
dc1aeeb2
...
...
@@ -230,7 +230,6 @@ extern COLORREF X11DRV_SetDCBrushColor( PHYSDEV dev, COLORREF crColor ) DECLSPEC
extern
COLORREF
X11DRV_SetDCPenColor
(
PHYSDEV
dev
,
COLORREF
crColor
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_SetDeviceClipping
(
PHYSDEV
dev
,
HRGN
rgn
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_SetDeviceGammaRamp
(
PHYSDEV
dev
,
LPVOID
ramp
)
DECLSPEC_HIDDEN
;
extern
UINT
X11DRV_SetDIBColorTable
(
PHYSDEV
dev
,
UINT
start
,
UINT
count
,
const
RGBQUAD
*
colors
)
DECLSPEC_HIDDEN
;
extern
COLORREF
X11DRV_SetPixel
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_SetPixelFormat
(
PHYSDEV
dev
,
int
iPixelFormat
,
const
PIXELFORMATDESCRIPTOR
*
ppfd
)
DECLSPEC_HIDDEN
;
extern
COLORREF
X11DRV_SetTextColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/xrender.c
View file @
dc1aeeb2
...
...
@@ -2778,7 +2778,6 @@ static const struct gdi_dc_funcs xrender_funcs =
NULL
,
/* pSetBkMode */
NULL
,
/* pSetDCBrushColor */
NULL
,
/* pSetDCPenColor */
NULL
,
/* pSetDIBColorTable */
NULL
,
/* pSetDIBitsToDevice */
xrenderdrv_SetDeviceClipping
,
/* pSetDeviceClipping */
NULL
,
/* pSetDeviceGammaRamp */
...
...
include/wine/gdi_driver.h
View file @
dc1aeeb2
...
...
@@ -165,7 +165,6 @@ struct gdi_dc_funcs
INT
(
*
pSetBkMode
)(
PHYSDEV
,
INT
);
COLORREF
(
*
pSetDCBrushColor
)(
PHYSDEV
,
COLORREF
);
COLORREF
(
*
pSetDCPenColor
)(
PHYSDEV
,
COLORREF
);
UINT
(
*
pSetDIBColorTable
)(
PHYSDEV
,
UINT
,
UINT
,
const
RGBQUAD
*
);
INT
(
*
pSetDIBitsToDevice
)(
PHYSDEV
,
INT
,
INT
,
DWORD
,
DWORD
,
INT
,
INT
,
UINT
,
UINT
,
LPCVOID
,
BITMAPINFO
*
,
UINT
);
VOID
(
*
pSetDeviceClipping
)(
PHYSDEV
,
HRGN
);
BOOL
(
*
pSetDeviceGammaRamp
)(
PHYSDEV
,
LPVOID
);
...
...
@@ -213,7 +212,7 @@ struct gdi_dc_funcs
};
/* increment this when you change the DC function table */
#define WINE_GDI_DRIVER_VERSION 2
2
#define WINE_GDI_DRIVER_VERSION 2
3
static
inline
PHYSDEV
get_physdev_entry_point
(
PHYSDEV
dev
,
size_t
offset
)
{
...
...
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