Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
56a45b20
Commit
56a45b20
authored
23 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Small cleanups.
parent
391fdec8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/ddraw/d3dviewport.c
+0
-1
0 additions, 1 deletion
dlls/ddraw/d3dviewport.c
dlls/dinput/keyboard/main.c
+0
-16
0 additions, 16 deletions
dlls/dinput/keyboard/main.c
dlls/opengl32/wgl.c
+2
-13
2 additions, 13 deletions
dlls/opengl32/wgl.c
with
2 additions
and
30 deletions
dlls/ddraw/d3dviewport.c
+
0
−
1
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"
...
...
This diff is collapsed.
Click to expand it.
dlls/dinput/keyboard/main.c
+
0
−
16
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
"
);
...
...
This diff is collapsed.
Click to expand it.
dlls/opengl32/wgl.c
+
2
−
13
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment