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
463a1137
Commit
463a1137
authored
Jan 20, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Introduce a win32u_get_window_pixel_format() helper.
parent
b545ca0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
window.c
dlls/win32u/window.c
+17
-0
gdi_driver.h
include/wine/gdi_driver.h
+1
-0
No files found.
dlls/win32u/window.c
View file @
463a1137
...
...
@@ -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.@)
*
...
...
include/wine/gdi_driver.h
View file @
463a1137
...
...
@@ -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 */
...
...
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