Alexandre Julliard : gdi32: Get rid of the DC_FUNCTIONS typedef.

Alexandre Julliard julliard at winehq.org
Tue Oct 18 12:56:26 CDT 2011


Module: wine
Branch: master
Commit: 5267c1316b40b44617f1414b46cf2c50b35fc8ae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5267c1316b40b44617f1414b46cf2c50b35fc8ae

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct 17 20:39:54 2011 +0200

gdi32: Get rid of the DC_FUNCTIONS typedef.

---

 dlls/gdi32/bitmap.c        |    2 +-
 dlls/gdi32/dc.c            |    2 +-
 dlls/gdi32/dibdrv/dc.c     |    2 +-
 dlls/gdi32/driver.c        |    4 ++--
 dlls/gdi32/enhmfdrv/init.c |    2 +-
 dlls/gdi32/gdi_private.h   |   10 ++++------
 dlls/gdi32/mfdrv/init.c    |    2 +-
 7 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/dlls/gdi32/bitmap.c b/dlls/gdi32/bitmap.c
index 7c8fa54..9fdedb3 100644
--- a/dlls/gdi32/bitmap.c
+++ b/dlls/gdi32/bitmap.c
@@ -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;
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index b50ea70..74d3747 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -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();
diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c
index 2099388..2331e7c 100644
--- a/dlls/gdi32/dibdrv/dc.c
+++ b/dlls/gdi32/dibdrv/dc.c
@@ -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 */
diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c
index 8647b95..565e0ad 100644
--- a/dlls/gdi32/driver.c
+++ b/dlls/gdi32/driver.c
@@ -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 */
diff --git a/dlls/gdi32/enhmfdrv/init.c b/dlls/gdi32/enhmfdrv/init.c
index 292f505..56e3de8 100644
--- a/dlls/gdi32/enhmfdrv/init.c
+++ b/dlls/gdi32/enhmfdrv/init.c
@@ -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 */
diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h
index 1fc8573..67bdd2c 100644
--- a/dlls/gdi32/gdi_private.h
+++ b/dlls/gdi32/gdi_private.h
@@ -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 */
diff --git a/dlls/gdi32/mfdrv/init.c b/dlls/gdi32/mfdrv/init.c
index 0c93571..92680d3 100644
--- a/dlls/gdi32/mfdrv/init.c
+++ b/dlls/gdi32/mfdrv/init.c
@@ -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 */




More information about the wine-cvs mailing list