user32: Store the pixel format in the window structure.
This commit is contained in:
parent
6eea257fd1
commit
cf799f5852
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue