user32: Store the pixel format in the window structure.

This commit is contained in:
Alexandre Julliard 2012-10-09 09:51:29 +02:00
parent 6eea257fd1
commit cf799f5852
2 changed files with 11 additions and 0 deletions

View File

@ -3599,6 +3599,16 @@ BOOL WINAPI SwitchDesktop( HDESK hDesktop)
*/
BOOL CDECL __wine_set_pixel_format( HWND hwnd, int format )
{
WND *win = WIN_GetPtr( hwnd );
if (!win || win == WND_DESKTOP || win == WND_OTHER_PROCESS)
{
WARN( "setting format %d on win %p not supported\n", format, hwnd );
return FALSE;
}
win->pixel_format = format;
WIN_ReleasePtr( win );
update_window_state( hwnd );
return TRUE;
}

View File

@ -62,6 +62,7 @@ typedef struct tagWND
HICON hIconSmall; /* window's small icon */
struct window_surface *surface; /* Window surface if any */
struct tagDIALOGINFO *dlgInfo;/* Dialog additional info (dialogs only) */
int pixel_format; /* Pixel format set by the graphics driver */
int cbWndExtra; /* class cbWndExtra at window creation */
DWORD_PTR userdata; /* User private data */
DWORD wExtra[1]; /* Window extra bytes */