gdi32: Use explicit CDECL in window_surface_funcs.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2020-09-22 10:26:26 +02:00 committed by Alexandre Julliard
parent a404eb7272
commit b16f552e19
6 changed files with 43 additions and 43 deletions

View File

@ -449,7 +449,7 @@ static struct dib_window_surface *get_dib_surface( struct window_surface *surfac
/***********************************************************************
* dib_surface_lock
*/
static void dib_surface_lock( struct window_surface *window_surface )
static void CDECL dib_surface_lock( struct window_surface *window_surface )
{
/* nothing to do */
}
@ -457,7 +457,7 @@ static void dib_surface_lock( struct window_surface *window_surface )
/***********************************************************************
* dib_surface_unlock
*/
static void dib_surface_unlock( struct window_surface *window_surface )
static void CDECL dib_surface_unlock( struct window_surface *window_surface )
{
/* nothing to do */
}
@ -465,7 +465,7 @@ static void dib_surface_unlock( struct window_surface *window_surface )
/***********************************************************************
* dib_surface_get_bitmap_info
*/
static void *dib_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
static void *CDECL dib_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
{
struct dib_window_surface *surface = get_dib_surface( window_surface );
@ -476,7 +476,7 @@ static void *dib_surface_get_bitmap_info( struct window_surface *window_surface,
/***********************************************************************
* dib_surface_get_bounds
*/
static RECT *dib_surface_get_bounds( struct window_surface *window_surface )
static RECT *CDECL dib_surface_get_bounds( struct window_surface *window_surface )
{
struct dib_window_surface *surface = get_dib_surface( window_surface );
@ -486,7 +486,7 @@ static RECT *dib_surface_get_bounds( struct window_surface *window_surface )
/***********************************************************************
* dib_surface_set_region
*/
static void dib_surface_set_region( struct window_surface *window_surface, HRGN region )
static void CDECL dib_surface_set_region( struct window_surface *window_surface, HRGN region )
{
/* nothing to do */
}
@ -494,7 +494,7 @@ static void dib_surface_set_region( struct window_surface *window_surface, HRGN
/***********************************************************************
* dib_surface_flush
*/
static void dib_surface_flush( struct window_surface *window_surface )
static void CDECL dib_surface_flush( struct window_surface *window_surface )
{
/* nothing to do */
}
@ -502,7 +502,7 @@ static void dib_surface_flush( struct window_surface *window_surface )
/***********************************************************************
* dib_surface_destroy
*/
static void dib_surface_destroy( struct window_surface *window_surface )
static void CDECL dib_surface_destroy( struct window_surface *window_surface )
{
struct dib_window_surface *surface = get_dib_surface( window_surface );

View File

@ -528,17 +528,17 @@ BOOL is_desktop_window( HWND hwnd )
* Dummy window surface for windows that shouldn't get painted.
*/
static void dummy_surface_lock( struct window_surface *window_surface )
static void CDECL dummy_surface_lock( struct window_surface *window_surface )
{
/* nothing to do */
}
static void dummy_surface_unlock( struct window_surface *window_surface )
static void CDECL dummy_surface_unlock( struct window_surface *window_surface )
{
/* nothing to do */
}
static void *dummy_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
static void *CDECL dummy_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
{
static DWORD dummy_data;
@ -556,23 +556,23 @@ static void *dummy_surface_get_bitmap_info( struct window_surface *window_surfac
return &dummy_data;
}
static RECT *dummy_surface_get_bounds( struct window_surface *window_surface )
static RECT *CDECL dummy_surface_get_bounds( struct window_surface *window_surface )
{
static RECT dummy_bounds;
return &dummy_bounds;
}
static void dummy_surface_set_region( struct window_surface *window_surface, HRGN region )
static void CDECL dummy_surface_set_region( struct window_surface *window_surface, HRGN region )
{
/* nothing to do */
}
static void dummy_surface_flush( struct window_surface *window_surface )
static void CDECL dummy_surface_flush( struct window_surface *window_surface )
{
/* nothing to do */
}
static void dummy_surface_destroy( struct window_surface *window_surface )
static void CDECL dummy_surface_destroy( struct window_surface *window_surface )
{
/* nothing to do */
}

View File

@ -656,7 +656,7 @@ static void apply_line_region( DWORD *dst, int width, int x, int y, const RECT *
/***********************************************************************
* android_surface_lock
*/
static void android_surface_lock( struct window_surface *window_surface )
static void CDECL android_surface_lock( struct window_surface *window_surface )
{
struct android_window_surface *surface = get_android_surface( window_surface );
@ -666,7 +666,7 @@ static void android_surface_lock( struct window_surface *window_surface )
/***********************************************************************
* android_surface_unlock
*/
static void android_surface_unlock( struct window_surface *window_surface )
static void CDECL android_surface_unlock( struct window_surface *window_surface )
{
struct android_window_surface *surface = get_android_surface( window_surface );
@ -676,7 +676,7 @@ static void android_surface_unlock( struct window_surface *window_surface )
/***********************************************************************
* android_surface_get_bitmap_info
*/
static void *android_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
static void *CDECL android_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
{
struct android_window_surface *surface = get_android_surface( window_surface );
@ -687,7 +687,7 @@ static void *android_surface_get_bitmap_info( struct window_surface *window_surf
/***********************************************************************
* android_surface_get_bounds
*/
static RECT *android_surface_get_bounds( struct window_surface *window_surface )
static RECT *CDECL android_surface_get_bounds( struct window_surface *window_surface )
{
struct android_window_surface *surface = get_android_surface( window_surface );
@ -697,7 +697,7 @@ static RECT *android_surface_get_bounds( struct window_surface *window_surface )
/***********************************************************************
* android_surface_set_region
*/
static void android_surface_set_region( struct window_surface *window_surface, HRGN region )
static void CDECL android_surface_set_region( struct window_surface *window_surface, HRGN region )
{
struct android_window_surface *surface = get_android_surface( window_surface );
@ -721,7 +721,7 @@ static void android_surface_set_region( struct window_surface *window_surface, H
/***********************************************************************
* android_surface_flush
*/
static void android_surface_flush( struct window_surface *window_surface )
static void CDECL android_surface_flush( struct window_surface *window_surface )
{
struct android_window_surface *surface = get_android_surface( window_surface );
ANativeWindow_Buffer buffer;
@ -804,7 +804,7 @@ static void android_surface_flush( struct window_surface *window_surface )
/***********************************************************************
* android_surface_destroy
*/
static void android_surface_destroy( struct window_surface *window_surface )
static void CDECL android_surface_destroy( struct window_surface *window_surface )
{
struct android_window_surface *surface = get_android_surface( window_surface );

View File

@ -96,7 +96,7 @@ static void update_blit_data(struct macdrv_window_surface *surface)
/***********************************************************************
* macdrv_surface_lock
*/
static void macdrv_surface_lock(struct window_surface *window_surface)
static void CDECL macdrv_surface_lock(struct window_surface *window_surface)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
@ -106,7 +106,7 @@ static void macdrv_surface_lock(struct window_surface *window_surface)
/***********************************************************************
* macdrv_surface_unlock
*/
static void macdrv_surface_unlock(struct window_surface *window_surface)
static void CDECL macdrv_surface_unlock(struct window_surface *window_surface)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
@ -116,8 +116,8 @@ static void macdrv_surface_unlock(struct window_surface *window_surface)
/***********************************************************************
* macdrv_surface_get_bitmap_info
*/
static void *macdrv_surface_get_bitmap_info(struct window_surface *window_surface,
BITMAPINFO *info)
static void *CDECL macdrv_surface_get_bitmap_info(struct window_surface *window_surface,
BITMAPINFO *info)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
@ -128,7 +128,7 @@ static void *macdrv_surface_get_bitmap_info(struct window_surface *window_surfac
/***********************************************************************
* macdrv_surface_get_bounds
*/
static RECT *macdrv_surface_get_bounds(struct window_surface *window_surface)
static RECT *CDECL macdrv_surface_get_bounds(struct window_surface *window_surface)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
@ -138,7 +138,7 @@ static RECT *macdrv_surface_get_bounds(struct window_surface *window_surface)
/***********************************************************************
* macdrv_surface_set_region
*/
static void macdrv_surface_set_region(struct window_surface *window_surface, HRGN region)
static void CDECL macdrv_surface_set_region(struct window_surface *window_surface, HRGN region)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
@ -164,7 +164,7 @@ static void macdrv_surface_set_region(struct window_surface *window_surface, HRG
/***********************************************************************
* macdrv_surface_flush
*/
static void macdrv_surface_flush(struct window_surface *window_surface)
static void CDECL macdrv_surface_flush(struct window_surface *window_surface)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
CGRect rect;
@ -200,7 +200,7 @@ static void macdrv_surface_flush(struct window_surface *window_surface)
/***********************************************************************
* macdrv_surface_destroy
*/
static void macdrv_surface_destroy(struct window_surface *window_surface)
static void CDECL macdrv_surface_destroy(struct window_surface *window_surface)
{
struct macdrv_window_surface *surface = get_mac_surface(window_surface);

View File

@ -1817,7 +1817,7 @@ failed:
/***********************************************************************
* x11drv_surface_lock
*/
static void x11drv_surface_lock( struct window_surface *window_surface )
static void CDECL x11drv_surface_lock( struct window_surface *window_surface )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
@ -1827,7 +1827,7 @@ static void x11drv_surface_lock( struct window_surface *window_surface )
/***********************************************************************
* x11drv_surface_unlock
*/
static void x11drv_surface_unlock( struct window_surface *window_surface )
static void CDECL x11drv_surface_unlock( struct window_surface *window_surface )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
@ -1837,7 +1837,7 @@ static void x11drv_surface_unlock( struct window_surface *window_surface )
/***********************************************************************
* x11drv_surface_get_bitmap_info
*/
static void *x11drv_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
static void *CDECL x11drv_surface_get_bitmap_info( struct window_surface *window_surface, BITMAPINFO *info )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
@ -1848,7 +1848,7 @@ static void *x11drv_surface_get_bitmap_info( struct window_surface *window_surfa
/***********************************************************************
* x11drv_surface_get_bounds
*/
static RECT *x11drv_surface_get_bounds( struct window_surface *window_surface )
static RECT *CDECL x11drv_surface_get_bounds( struct window_surface *window_surface )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
@ -1858,7 +1858,7 @@ static RECT *x11drv_surface_get_bounds( struct window_surface *window_surface )
/***********************************************************************
* x11drv_surface_set_region
*/
static void x11drv_surface_set_region( struct window_surface *window_surface, HRGN region )
static void CDECL x11drv_surface_set_region( struct window_surface *window_surface, HRGN region )
{
RGNDATA *data;
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
@ -1889,7 +1889,7 @@ static void x11drv_surface_set_region( struct window_surface *window_surface, HR
/***********************************************************************
* x11drv_surface_flush
*/
static void x11drv_surface_flush( struct window_surface *window_surface )
static void CDECL x11drv_surface_flush( struct window_surface *window_surface )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );
unsigned char *src = surface->bits;
@ -1956,7 +1956,7 @@ static void x11drv_surface_flush( struct window_surface *window_surface )
/***********************************************************************
* x11drv_surface_destroy
*/
static void x11drv_surface_destroy( struct window_surface *window_surface )
static void CDECL x11drv_surface_destroy( struct window_surface *window_surface )
{
struct x11drv_window_surface *surface = get_x11_surface( window_surface );

View File

@ -236,13 +236,13 @@ struct window_surface;
struct window_surface_funcs
{
void (*lock)( struct window_surface *surface );
void (*unlock)( struct window_surface *surface );
void* (*get_info)( struct window_surface *surface, BITMAPINFO *info );
RECT* (*get_bounds)( struct window_surface *surface );
void (*set_region)( struct window_surface *surface, HRGN region );
void (*flush)( struct window_surface *surface );
void (*destroy)( struct window_surface *surface );
void (CDECL *lock)( struct window_surface *surface );
void (CDECL *unlock)( struct window_surface *surface );
void* (CDECL *get_info)( struct window_surface *surface, BITMAPINFO *info );
RECT* (CDECL *get_bounds)( struct window_surface *surface );
void (CDECL *set_region)( struct window_surface *surface, HRGN region );
void (CDECL *flush)( struct window_surface *surface );
void (CDECL *destroy)( struct window_surface *surface );
};
struct window_surface