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
a0f1b204
Commit
a0f1b204
authored
Sep 02, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make the BITMAPINFO parameters non-const in driver entry points since we…
gdi32: Make the BITMAPINFO parameters non-const in driver entry points since we are always passing a copy.
parent
62dca77b
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
21 additions
and
24 deletions
+21
-24
dib.c
dlls/gdi32/dib.c
+1
-1
driver.c
dlls/gdi32/driver.c
+2
-2
bitblt.c
dlls/gdi32/enhmfdrv/bitblt.c
+2
-2
enhmetafiledrv.h
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
+2
-3
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-1
bitblt.c
dlls/gdi32/mfdrv/bitblt.c
+2
-3
metafiledrv.h
dlls/gdi32/mfdrv/metafiledrv.h
+2
-3
bitmap.c
dlls/wineps.drv/bitmap.c
+1
-1
psdrv.h
dlls/wineps.drv/psdrv.h
+1
-1
dib.c
dlls/winex11.drv/dib.c
+2
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-2
gdi_driver.h
include/wine/gdi_driver.h
+3
-3
No files found.
dlls/gdi32/dib.c
View file @
a0f1b204
...
...
@@ -385,7 +385,7 @@ fail:
/* nulldrv fallback implementation using SetDIBits/StretchBlt */
INT
nulldrv_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
,
DWORD
rop
)
BITMAPINFO
*
info
,
UINT
coloruse
,
DWORD
rop
)
{
DC
*
dc
=
get_nulldrv_dc
(
dev
);
INT
ret
;
...
...
dlls/gdi32/driver.c
View file @
a0f1b204
...
...
@@ -225,7 +225,7 @@ static BOOL nulldrv_CreateDC( HDC hdc, PHYSDEV *dev, LPCWSTR driver, LPCWSTR dev
return
FALSE
;
}
static
HBITMAP
nulldrv_CreateDIBSection
(
PHYSDEV
dev
,
HBITMAP
bitmap
,
const
BITMAPINFO
*
info
,
UINT
usage
)
static
HBITMAP
nulldrv_CreateDIBSection
(
PHYSDEV
dev
,
HBITMAP
bitmap
,
BITMAPINFO
*
info
,
UINT
usage
)
{
return
bitmap
;
}
...
...
@@ -504,7 +504,7 @@ static UINT nulldrv_SetDIBColorTable( PHYSDEV dev, UINT pos, UINT count, const R
static
INT
nulldrv_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
x_dst
,
INT
y_dst
,
DWORD
width
,
DWORD
height
,
INT
x_src
,
INT
y_src
,
UINT
start
,
UINT
lines
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
const
void
*
bits
,
BITMAPINFO
*
info
,
UINT
coloruse
)
{
return
0
;
}
...
...
dlls/gdi32/enhmfdrv/bitblt.c
View file @
a0f1b204
...
...
@@ -171,7 +171,7 @@ BOOL EMFDRV_StretchBlt( PHYSDEV devDst, struct bitblt_coords *dst,
INT
EMFDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
{
EMRSTRETCHDIBITS
*
emr
;
BOOL
ret
;
...
...
@@ -228,7 +228,7 @@ INT EMFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst, INT hei
INT
EMFDRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
DWORD
width
,
DWORD
height
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
)
LPCVOID
bits
,
BITMAPINFO
*
info
,
UINT
wUsage
)
{
EMRSETDIBITSTODEVICE
*
pEMR
;
DWORD
bmiSize
=
bitmap_info_size
(
info
,
wUsage
);
...
...
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
View file @
a0f1b204
...
...
@@ -120,7 +120,7 @@ extern COLORREF EMFDRV_SetDCBrushColor( PHYSDEV dev, COLORREF color ) DECLSPEC_H
extern
COLORREF
EMFDRV_SetDCPenColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
INT
EMFDRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDest
,
INT
yDest
,
DWORD
cx
,
DWORD
cy
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
DECLSPEC_HIDDEN
;
BITMAPINFO
*
info
,
UINT
coloruse
)
DECLSPEC_HIDDEN
;
extern
DWORD
EMFDRV_SetLayout
(
PHYSDEV
dev
,
DWORD
layout
)
DECLSPEC_HIDDEN
;
extern
INT
EMFDRV_SetMapMode
(
PHYSDEV
dev
,
INT
mode
)
DECLSPEC_HIDDEN
;
extern
DWORD
EMFDRV_SetMapperFlags
(
PHYSDEV
dev
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
...
...
@@ -140,8 +140,7 @@ extern BOOL EMFDRV_StretchBlt( PHYSDEV devDst, struct bitblt_coords *dst,
PHYSDEV
devSrc
,
struct
bitblt_coords
*
src
,
DWORD
rop
)
DECLSPEC_HIDDEN
;
extern
INT
EMFDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
const
void
*
bits
,
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
extern
BOOL
EMFDRV_StrokeAndFillPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
EMFDRV_StrokePath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
EMFDRV_WidenPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
...
...
dlls/gdi32/gdi_private.h
View file @
a0f1b204
...
...
@@ -510,7 +510,7 @@ extern BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
PHYSDEV
src_dev
,
struct
bitblt_coords
*
src
,
DWORD
rop
)
DECLSPEC_HIDDEN
;
extern
INT
nulldrv_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
,
DWORD
rop
)
DECLSPEC_HIDDEN
;
BITMAPINFO
*
info
,
UINT
coloruse
,
DWORD
rop
)
DECLSPEC_HIDDEN
;
extern
BOOL
nulldrv_StrokeAndFillPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
nulldrv_StrokePath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
nulldrv_WidenPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
...
...
dlls/gdi32/mfdrv/bitblt.c
View file @
a0f1b204
...
...
@@ -133,7 +133,7 @@ BOOL MFDRV_StretchBlt( PHYSDEV devDst, struct bitblt_coords *dst,
INT
MFDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
{
DWORD
infosize
=
bitmap_info_size
(
info
,
wUsage
);
DWORD
len
=
sizeof
(
METARECORD
)
+
10
*
sizeof
(
WORD
)
+
infosize
+
info
->
bmiHeader
.
biSizeImage
;
...
...
@@ -166,8 +166,7 @@ INT MFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
*/
INT
MFDRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
DWORD
cx
,
DWORD
cy
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
UINT
lines
,
LPCVOID
bits
,
BITMAPINFO
*
info
,
UINT
coloruse
)
{
DWORD
infosize
=
bitmap_info_size
(
info
,
coloruse
);
...
...
dlls/gdi32/mfdrv/metafiledrv.h
View file @
a0f1b204
...
...
@@ -134,11 +134,10 @@ extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
extern
INT
MFDRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDest
,
INT
yDest
,
DWORD
cx
,
DWORD
cy
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
DECLSPEC_HIDDEN
;
BITMAPINFO
*
info
,
UINT
coloruse
)
DECLSPEC_HIDDEN
;
extern
INT
MFDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
const
void
*
bits
,
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
extern
BOOL
MFDRV_StrokeAndFillPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
MFDRV_StrokePath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
extern
BOOL
MFDRV_WidenPath
(
PHYSDEV
dev
)
DECLSPEC_HIDDEN
;
...
...
dlls/wineps.drv/bitmap.c
View file @
a0f1b204
...
...
@@ -288,7 +288,7 @@ update_format:
*/
INT
PSDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
{
INT
stride
;
INT
line
;
...
...
dlls/wineps.drv/psdrv.h
View file @
a0f1b204
...
...
@@ -462,7 +462,7 @@ extern INT PSDRV_StartDoc( PHYSDEV dev, const DOCINFOW *doc ) DECLSPEC_HIDDEN;
extern
INT
PSDRV_StretchDIBits
(
PHYSDEV
dev
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
DECLSPEC_HIDDEN
;
extern
void
PSDRV_MergeDevmodes
(
PSDRV_DEVMODEA
*
dm1
,
PSDRV_DEVMODEA
*
dm2
,
PRINTERINFO
*
pi
)
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/dib.c
View file @
a0f1b204
...
...
@@ -3719,7 +3719,7 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
*/
INT
X11DRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDest
,
INT
yDest
,
DWORD
cx
,
DWORD
cy
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
BITMAPINFO
*
info
,
UINT
coloruse
)
{
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
X11DRV_DIB_IMAGEBITS_DESCR
descr
;
...
...
@@ -4359,7 +4359,7 @@ static Bool X11DRV_DIB_QueryXShm( Bool *pixmaps )
/***********************************************************************
* X11DRV_CreateDIBSection (X11DRV.@)
*/
HBITMAP
X11DRV_CreateDIBSection
(
PHYSDEV
dev
,
HBITMAP
hbitmap
,
const
BITMAPINFO
*
bmi
,
UINT
usage
)
HBITMAP
X11DRV_CreateDIBSection
(
PHYSDEV
dev
,
HBITMAP
hbitmap
,
BITMAPINFO
*
bmi
,
UINT
usage
)
{
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
X_PHYSBITMAP
*
physBitmap
;
...
...
dlls/winex11.drv/x11drv.h
View file @
a0f1b204
...
...
@@ -189,7 +189,7 @@ extern BOOL X11DRV_Chord( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateBitmap
(
PHYSDEV
dev
,
HBITMAP
hbitmap
)
DECLSPEC_HIDDEN
;
extern
HBITMAP
X11DRV_CreateDIBSection
(
PHYSDEV
dev
,
HBITMAP
hbitmap
,
const
BITMAPINFO
*
bmi
,
UINT
usage
)
DECLSPEC_HIDDEN
;
BITMAPINFO
*
bmi
,
UINT
usage
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_DeleteBitmap
(
HBITMAP
hbitmap
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_Ellipse
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_EnumDeviceFonts
(
PHYSDEV
dev
,
LPLOGFONTW
plf
,
...
...
@@ -237,7 +237,7 @@ extern void X11DRV_SetDeviceClipping( PHYSDEV dev, HRGN vis_rgn, HRGN clip_rgn )
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
INT
X11DRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDest
,
INT
yDest
,
DWORD
cx
,
DWORD
cy
,
INT
xSrc
,
INT
ySrc
,
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
const
BITMAPINFO
*
info
,
UINT
coloruse
)
DECLSPEC_HIDDEN
;
UINT
startscan
,
UINT
lines
,
LPCVOID
bits
,
BITMAPINFO
*
info
,
UINT
coloruse
)
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
;
...
...
include/wine/gdi_driver.h
View file @
a0f1b204
...
...
@@ -66,7 +66,7 @@ struct gdi_dc_funcs
BOOL
(
*
pCloseFigure
)(
PHYSDEV
);
BOOL
(
*
pCreateBitmap
)(
PHYSDEV
,
HBITMAP
);
BOOL
(
*
pCreateDC
)(
HDC
,
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
HBITMAP
(
*
pCreateDIBSection
)(
PHYSDEV
,
HBITMAP
,
const
BITMAPINFO
*
,
UINT
);
HBITMAP
(
*
pCreateDIBSection
)(
PHYSDEV
,
HBITMAP
,
BITMAPINFO
*
,
UINT
);
BOOL
(
*
pDeleteBitmap
)(
HBITMAP
);
BOOL
(
*
pDeleteDC
)(
PHYSDEV
);
BOOL
(
*
pDeleteObject
)(
PHYSDEV
,
HGDIOBJ
);
...
...
@@ -141,7 +141,7 @@ struct gdi_dc_funcs
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
,
const
BITMAPINFO
*
,
UINT
);
INT
(
*
pSetDIBitsToDevice
)(
PHYSDEV
,
INT
,
INT
,
DWORD
,
DWORD
,
INT
,
INT
,
UINT
,
UINT
,
LPCVOID
,
BITMAPINFO
*
,
UINT
);
VOID
(
*
pSetDeviceClipping
)(
PHYSDEV
,
HRGN
,
HRGN
);
BOOL
(
*
pSetDeviceGammaRamp
)(
PHYSDEV
,
LPVOID
);
DWORD
(
*
pSetLayout
)(
PHYSDEV
,
DWORD
);
...
...
@@ -165,7 +165,7 @@ struct gdi_dc_funcs
INT
(
*
pStartDoc
)(
PHYSDEV
,
const
DOCINFOW
*
);
INT
(
*
pStartPage
)(
PHYSDEV
);
BOOL
(
*
pStretchBlt
)(
PHYSDEV
,
struct
bitblt_coords
*
,
PHYSDEV
,
struct
bitblt_coords
*
,
DWORD
);
INT
(
*
pStretchDIBits
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
const
void
*
,
const
BITMAPINFO
*
,
UINT
,
DWORD
);
INT
(
*
pStretchDIBits
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
const
void
*
,
BITMAPINFO
*
,
UINT
,
DWORD
);
BOOL
(
*
pStrokeAndFillPath
)(
PHYSDEV
);
BOOL
(
*
pStrokePath
)(
PHYSDEV
);
BOOL
(
*
pSwapBuffers
)(
PHYSDEV
);
...
...
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