win32u: Extend NtGdiSetDIBitsToDeviceInternal for SetDIBits implementation.
[wine.git] / dlls / win32u / wrappers.c
blob9e013c64b5977c1965761a302a2440d7c4c93fa5
1 /*
2 * Unix call wrappers
4 * Copyright 2021 Jacek Caban for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "ntstatus.h"
22 #define WIN32_NO_STATUS
23 #include "win32u_private.h"
25 static const struct unix_funcs *unix_funcs;
27 BOOL CDECL __wine_get_icm_profile( HDC hdc, BOOL allow_default, DWORD *size, WCHAR *filename )
29 if (!unix_funcs) return FALSE;
30 return unix_funcs->get_icm_profile( hdc, allow_default, size, filename );
33 BOOL CDECL __wine_get_file_outline_text_metric( const WCHAR *path, OUTLINETEXTMETRICW *otm )
35 if (!unix_funcs) return FALSE;
36 return unix_funcs->get_file_outline_text_metric( path, otm );
39 BOOL CDECL __wine_send_input( HWND hwnd, const INPUT *input, const RAWINPUT *rawinput )
41 if (!unix_funcs) return FALSE;
42 return unix_funcs->wine_send_input( hwnd, input, rawinput );
45 extern void wrappers_init( unixlib_handle_t handle )
47 const void *args;
48 if (!__wine_unix_call( handle, 1, &args )) unix_funcs = args;