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
e41a4828
Commit
e41a4828
authored
Oct 03, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a Wine-specific entry point to set the pixel format of a window.
parent
3d73e0a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
user32.spec
dlls/user32/user32.spec
+1
-0
win.c
dlls/user32/win.c
+15
-0
opengl.c
dlls/winex11.drv/opengl.c
+2
-0
wgl_driver.h
include/wine/wgl_driver.h
+1
-0
No files found.
dlls/user32/user32.spec
View file @
e41a4828
...
...
@@ -779,3 +779,4 @@
# or 'wine_' (for user-visible functions) to avoid namespace conflicts.
#
@ cdecl __wine_send_input(long ptr)
@ cdecl __wine_set_pixel_format(long long)
dlls/user32/win.c
View file @
e41a4828
...
...
@@ -3592,6 +3592,21 @@ BOOL WINAPI SwitchDesktop( HDESK hDesktop)
return
TRUE
;
}
/***********************************************************************
* __wine_set_pixel_format
*/
BOOL
CDECL
__wine_set_pixel_format
(
HWND
hwnd
,
int
format
)
{
RECT
window_rect
,
client_rect
;
WIN_GetRectangles
(
hwnd
,
COORDS_PARENT
,
&
window_rect
,
&
client_rect
);
return
set_window_pos
(
hwnd
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
,
&
window_rect
,
&
client_rect
,
NULL
);
}
/*****************************************************************************
* SetLayeredWindowAttributes (USER32.@)
*/
...
...
dlls/winex11.drv/opengl.c
View file @
e41a4828
...
...
@@ -1286,6 +1286,8 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
free_gl_drawable
(
prev
);
XSaveContext
(
gdi_display
,
(
XID
)
hwnd
,
gl_hwnd_context
,
(
char
*
)
gl
);
LeaveCriticalSection
(
&
context_section
);
__wine_set_pixel_format
(
hwnd
,
pixel_format_index
(
format
));
return
TRUE
;
}
...
...
include/wine/wgl_driver.h
View file @
e41a4828
...
...
@@ -2853,5 +2853,6 @@ struct opengl_funcs
USE_GL_FUNC(glViewport)
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 */
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