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
56a45b20
Commit
56a45b20
authored
Apr 24, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanups.
parent
391fdec8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
30 deletions
+2
-30
d3dviewport.c
dlls/ddraw/d3dviewport.c
+0
-1
main.c
dlls/dinput/keyboard/main.c
+0
-16
wgl.c
dlls/opengl32/wgl.c
+2
-13
No files found.
dlls/ddraw/d3dviewport.c
View file @
56a45b20
...
...
@@ -11,7 +11,6 @@
#include "ddraw.h"
#include "d3d.h"
#include "debugtools.h"
#include "x11drv.h"
#include "d3d_private.h"
#include "mesa_private.h"
...
...
dlls/dinput/keyboard/main.c
View file @
56a45b20
...
...
@@ -41,7 +41,6 @@ struct SysKeyboardAImpl
/* SysKeyboardAImpl */
BYTE
keystate
[
256
];
KEYBOARD_CONFIG
initial_config
;
int
acquired
;
};
...
...
@@ -172,17 +171,6 @@ static HRESULT WINAPI SysKeyboardAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
TRACE
(
"(this=%p)
\n
"
,
This
);
if
(
This
->
acquired
==
0
)
{
#if 0
KEYBOARD_CONFIG no_auto;
/* Save the original config */
USER_Driver.pGetKeyboardConfig(&(This->initial_config));
/* Now, remove auto-repeat */
no_auto.auto_repeat = FALSE;
USER_Driver.pSetKeyboardConfig(&no_auto, WINE_KEYBOARD_CONFIG_AUTO_REPEAT);
#endif
This
->
acquired
=
1
;
}
...
...
@@ -195,10 +183,6 @@ static HRESULT WINAPI SysKeyboardAImpl_Unacquire(LPDIRECTINPUTDEVICE2A iface)
TRACE
(
"(this=%p)
\n
"
,
This
);
if
(
This
->
acquired
==
1
)
{
#if 0
/* Restore the original configuration */
USER_Driver.pSetKeyboardConfig(&(This->initial_config), 0xFFFFFFFF);
#endif
This
->
acquired
=
0
;
}
else
{
ERR
(
"Unacquiring a not-acquired device !!!
\n
"
);
...
...
dlls/opengl32/wgl.c
View file @
56a45b20
...
...
@@ -73,9 +73,8 @@ static WINE_EXCEPTION_FILTER(page_fault)
/***********************************************************************
* wglCreateContext
*/
HGLRC
WINAPI
wglCreateContext
(
HDC
hdc
)
{
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
X11DRV_PDEVICE
*
physDev
;
HGLRC
WINAPI
wglCreateContext
(
HDC
hdc
)
{
XVisualInfo
*
vis
;
Wine_GLContext
*
ret
;
int
num
;
...
...
@@ -83,13 +82,6 @@ HGLRC WINAPI wglCreateContext(HDC hdc) {
TRACE
(
"(%08x)
\n
"
,
hdc
);
if
(
dc
==
NULL
)
{
ERR
(
"Null DC !!!
\n
"
);
return
NULL
;
}
physDev
=
(
X11DRV_PDEVICE
*
)
dc
->
physDev
;
/* First, get the visual in use by the X11DRV */
template
.
visualid
=
XVisualIDFromVisual
(
X11DRV_GetVisual
());
vis
=
XGetVisualInfo
(
display
,
VisualIDMask
,
&
template
,
&
num
);
...
...
@@ -97,7 +89,6 @@ HGLRC WINAPI wglCreateContext(HDC hdc) {
if
(
vis
==
NULL
)
{
ERR
(
"NULL visual !!!
\n
"
);
/* Need to set errors here */
GDI_ReleaseObj
(
hdc
);
return
NULL
;
}
...
...
@@ -109,8 +100,6 @@ HGLRC WINAPI wglCreateContext(HDC hdc) {
ret
->
vis
=
vis
;
TRACE
(
" creating context %p (GL context creation delayed)
\n
"
,
ret
);
GDI_ReleaseObj
(
hdc
);
return
(
HGLRC
)
ret
;
}
...
...
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