Commit 0953de5c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Get rid of __wine_set_pixel_format.

Use NtUserSetWindowPixelFormat in drivers instead. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 55f4cf8c
...@@ -645,8 +645,7 @@ foreach (sort keys %norm_functions) ...@@ -645,8 +645,7 @@ foreach (sort keys %norm_functions)
} }
print HEADER "\n\n"; print HEADER "\n\n";
print HEADER "extern struct opengl_funcs * CDECL __wine_get_wgl_driver( HDC hdc, UINT version );\n"; print HEADER "extern struct opengl_funcs * CDECL __wine_get_wgl_driver( HDC hdc, UINT version );\n\n";
print HEADER "extern BOOL CDECL __wine_set_pixel_format( HWND hwnd, int format );\n\n";
print HEADER "#endif /* __WINE_WGL_DRIVER_H */\n"; print HEADER "#endif /* __WINE_WGL_DRIVER_H */\n";
close HEADER; close HEADER;
......
...@@ -831,11 +831,3 @@ ...@@ -831,11 +831,3 @@
@ varargs wsprintfW(wstr wstr) @ varargs wsprintfW(wstr wstr)
@ stdcall wvsprintfA(ptr str ptr) @ stdcall wvsprintfA(ptr str ptr)
@ stdcall wvsprintfW(ptr wstr ptr) @ stdcall wvsprintfW(ptr wstr ptr)
################################################################
# Wine internal extensions
#
# All functions must be prefixed with '__wine_' (for internal functions)
# or 'wine_' (for user-visible functions) to avoid namespace conflicts.
#
@ cdecl __wine_set_pixel_format(long long)
...@@ -1698,15 +1698,6 @@ BOOL WINAPI SwitchDesktop( HDESK hDesktop) ...@@ -1698,15 +1698,6 @@ BOOL WINAPI SwitchDesktop( HDESK hDesktop)
} }
/***********************************************************************
* __wine_set_pixel_format
*/
BOOL CDECL __wine_set_pixel_format( HWND hwnd, int format )
{
return NtUserSetWindowPixelFormat( hwnd, format );
}
/***************************************************************************** /*****************************************************************************
* UpdateLayeredWindowIndirect (USER32.@) * UpdateLayeredWindowIndirect (USER32.@)
*/ */
......
...@@ -245,7 +245,7 @@ static BOOL set_pixel_format( HDC hdc, int format, BOOL allow_change ) ...@@ -245,7 +245,7 @@ static BOOL set_pixel_format( HDC hdc, int format, BOOL allow_change )
release_gl_drawable( gl ); release_gl_drawable( gl );
if (prev && prev != format && !allow_change) return FALSE; if (prev && prev != format && !allow_change) return FALSE;
if (__wine_set_pixel_format( hwnd, format )) return TRUE; if (NtUserSetWindowPixelFormat( hwnd, format )) return TRUE;
destroy_gl_drawable( hwnd ); destroy_gl_drawable( hwnd );
return FALSE; return FALSE;
} }
......
...@@ -1600,7 +1600,7 @@ static BOOL set_pixel_format(HDC hdc, int fmt, BOOL allow_reset) ...@@ -1600,7 +1600,7 @@ static BOOL set_pixel_format(HDC hdc, int fmt, BOOL allow_reset)
done: done:
release_win_data(data); release_win_data(data);
if (ret && gl_surface_mode == GL_SURFACE_BEHIND) __wine_set_pixel_format(hwnd, fmt); if (ret && gl_surface_mode == GL_SURFACE_BEHIND) NtUserSetWindowPixelFormat(hwnd, fmt);
return ret; return ret;
} }
......
...@@ -1398,7 +1398,7 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format, BO ...@@ -1398,7 +1398,7 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format, BO
XFlush( gdi_display ); XFlush( gdi_display );
release_gl_drawable( gl ); release_gl_drawable( gl );
__wine_set_pixel_format( hwnd, pixel_format_index( format )); NtUserSetWindowPixelFormat( hwnd, pixel_format_index( format ));
return TRUE; return TRUE;
} }
...@@ -1508,7 +1508,7 @@ void set_gl_drawable_parent( HWND hwnd, HWND parent ) ...@@ -1508,7 +1508,7 @@ void set_gl_drawable_parent( HWND hwnd, HWND parent )
else else
{ {
destroy_gl_drawable( hwnd ); destroy_gl_drawable( hwnd );
__wine_set_pixel_format( hwnd, 0 ); NtUserSetWindowPixelFormat( hwnd, 0 );
} }
release_gl_drawable( old ); release_gl_drawable( old );
} }
......
...@@ -3406,6 +3406,5 @@ struct opengl_funcs ...@@ -3406,6 +3406,5 @@ struct opengl_funcs
USE_GL_FUNC(glViewport) USE_GL_FUNC(glViewport)
extern struct opengl_funcs * CDECL __wine_get_wgl_driver( HDC hdc, UINT version ); extern struct opengl_funcs * CDECL __wine_get_wgl_driver( HDC hdc, UINT version );
extern BOOL CDECL __wine_set_pixel_format( HWND hwnd, int format );
#endif /* __WINE_WGL_DRIVER_H */ #endif /* __WINE_WGL_DRIVER_H */
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