Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cf799f58
Commit
cf799f58
authored
Oct 09, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Store the pixel format in the window structure.
parent
6eea257f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
win.c
dlls/user32/win.c
+10
-0
win.h
dlls/user32/win.h
+1
-0
No files found.
dlls/user32/win.c
View file @
cf799f58
...
...
@@ -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
;
}
...
...
dlls/user32/win.h
View file @
cf799f58
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment