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
5267c131
Commit
5267c131
authored
Oct 17, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the DC_FUNCTIONS typedef.
parent
2dfa0023
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
13 deletions
+11
-13
bitmap.c
dlls/gdi32/bitmap.c
+1
-1
dc.c
dlls/gdi32/dc.c
+1
-1
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-1
driver.c
dlls/gdi32/driver.c
+2
-2
init.c
dlls/gdi32/enhmfdrv/init.c
+1
-1
gdi_private.h
dlls/gdi32/gdi_private.h
+4
-6
init.c
dlls/gdi32/mfdrv/init.c
+1
-1
No files found.
dlls/gdi32/bitmap.c
View file @
5267c131
...
...
@@ -762,7 +762,7 @@ static HGDIOBJ BITMAP_SelectObject( HGDIOBJ handle, HDC hdc )
*/
static
BOOL
BITMAP_DeleteObject
(
HGDIOBJ
handle
)
{
const
DC_FUNCTIONS
*
funcs
;
const
struct
gdi_dc_funcs
*
funcs
;
BITMAPOBJ
*
bmp
=
GDI_GetObjPtr
(
handle
,
OBJ_BITMAP
);
if
(
!
bmp
)
return
FALSE
;
...
...
dlls/gdi32/dc.c
View file @
5267c131
...
...
@@ -598,7 +598,7 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
{
HDC
hdc
;
DC
*
dc
;
const
DC_FUNCTIONS
*
funcs
;
const
struct
gdi_dc_funcs
*
funcs
;
WCHAR
buf
[
300
];
GDI_CheckNotLock
();
...
...
dlls/gdi32/dibdrv/dc.c
View file @
5267c131
...
...
@@ -509,7 +509,7 @@ static INT dibdrv_SetROP2( PHYSDEV dev, INT rop )
return
next
->
funcs
->
pSetROP2
(
next
,
rop
);
}
const
DC_FUNCTIONS
dib_driver
=
const
struct
gdi_dc_funcs
dib_driver
=
{
NULL
,
/* pAbortDoc */
NULL
,
/* pAbortPath */
...
...
dlls/gdi32/driver.c
View file @
5267c131
...
...
@@ -138,7 +138,7 @@ static const struct gdi_dc_funcs *get_display_driver(void)
/**********************************************************************
* DRIVER_load_driver
*/
const
DC_FUNCTIONS
*
DRIVER_load_driver
(
LPCWSTR
name
)
const
struct
gdi_dc_funcs
*
DRIVER_load_driver
(
LPCWSTR
name
)
{
HMODULE
module
;
struct
graphics_driver
*
driver
,
*
new_driver
;
...
...
@@ -651,7 +651,7 @@ static BOOL nulldrv_wglUseFontBitmapsW( PHYSDEV dev, DWORD start, DWORD count, D
return
FALSE
;
}
const
DC_FUNCTIONS
null_driver
=
const
struct
gdi_dc_funcs
null_driver
=
{
nulldrv_AbortDoc
,
/* pAbortDoc */
nulldrv_AbortPath
,
/* pAbortPath */
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
5267c131
...
...
@@ -34,7 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(enhmetafile);
static
BOOL
EMFDRV_DeleteDC
(
PHYSDEV
dev
);
static
const
DC_FUNCTIONS
EMFDRV_Funcs
=
static
const
struct
gdi_dc_funcs
EMFDRV_Funcs
=
{
NULL
,
/* pAbortDoc */
EMFDRV_AbortPath
,
/* pAbortPath */
...
...
dlls/gdi32/gdi_private.h
View file @
5267c131
...
...
@@ -72,8 +72,6 @@ typedef struct tagGDIOBJHDR
struct
hdc_list
*
hdcs
;
}
GDIOBJHDR
;
typedef
struct
gdi_dc_funcs
DC_FUNCTIONS
;
/* It should not be necessary to access the contents of the GdiPath
* structure directly; if you find that the exported functions don't
* allow you to do what you want, then please place a new exported
...
...
@@ -198,7 +196,7 @@ typedef struct tagBITMAPOBJ
GDIOBJHDR
header
;
BITMAP
bitmap
;
SIZE
size
;
/* For SetBitmapDimension() */
const
DC_FUNCTIONS
*
funcs
;
/* DC function table */
const
struct
gdi_dc_funcs
*
funcs
;
/* DC function table */
/* For device-independent bitmaps: */
DIBSECTION
*
dib
;
RGBQUAD
*
color_table
;
/* DIB color table if <= 8bpp */
...
...
@@ -270,9 +268,9 @@ extern DWORD blend_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struc
BLENDFUNCTION
blend
)
DECLSPEC_HIDDEN
;
/* driver.c */
extern
const
DC_FUNCTIONS
null_driver
DECLSPEC_HIDDEN
;
extern
const
DC_FUNCTIONS
dib_driver
DECLSPEC_HIDDEN
;
extern
const
DC_FUNCTIONS
*
DRIVER_load_driver
(
LPCWSTR
name
)
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
null_driver
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
dib_driver
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
DRIVER_load_driver
(
LPCWSTR
name
)
DECLSPEC_HIDDEN
;
extern
BOOL
DRIVER_GetDriverName
(
LPCWSTR
device
,
LPWSTR
driver
,
DWORD
size
)
DECLSPEC_HIDDEN
;
/* enhmetafile.c */
...
...
dlls/gdi32/mfdrv/init.c
View file @
5267c131
...
...
@@ -79,7 +79,7 @@ static INT MFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
}
static
const
DC_FUNCTIONS
MFDRV_Funcs
=
static
const
struct
gdi_dc_funcs
MFDRV_Funcs
=
{
NULL
,
/* pAbortDoc */
MFDRV_AbortPath
,
/* pAbortPath */
...
...
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