Commit 463a1137 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

win32u: Introduce a win32u_get_window_pixel_format() helper.

parent b545ca0f
......@@ -1457,6 +1457,23 @@ BOOL win32u_set_window_pixel_format( HWND hwnd, int format )
return TRUE;
}
int win32u_get_window_pixel_format( HWND hwnd )
{
WND *win = get_win_ptr( hwnd );
int ret;
if (!win || win == WND_DESKTOP || win == WND_OTHER_PROCESS)
{
WARN( "getting format on win %p not supported\n", hwnd );
return 0;
}
ret = win->pixel_format;
release_win_ptr( win );
return ret;
}
/***********************************************************************
* NtUserGetProp (win32u.@)
*
......
......@@ -340,6 +340,7 @@ struct user_driver_funcs
extern void __wine_set_user_driver( const struct user_driver_funcs *funcs, UINT version );
extern BOOL win32u_set_window_pixel_format( HWND hwnd, int format );
extern int win32u_get_window_pixel_format( HWND hwnd );
#endif /* WINE_UNIX_LIB */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment