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
0e5f84a1
Commit
0e5f84a1
authored
Feb 06, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32: Retrieve the graphics driver module from gdi32.
parent
a73c5d5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
Makefile.in
dlls/wintab32/Makefile.in
+1
-1
wintab32.c
dlls/wintab32/wintab32.c
+14
-10
No files found.
dlls/wintab32/Makefile.in
View file @
0e5f84a1
MODULE
=
wintab32.dll
IMPORTLIB
=
wintab32
IMPORTS
=
user32
IMPORTS
=
user32
gdi32
C_SRCS
=
\
context.c
\
...
...
dlls/wintab32/wintab32.c
View file @
0e5f84a1
...
...
@@ -25,8 +25,10 @@
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#define NOFIX32
#include "wintab.h"
#include "wintab_internal.h"
#include "wine/gdi_driver.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wintab32
);
...
...
@@ -72,7 +74,6 @@ static VOID TABLET_Unregister(void)
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpReserved
)
{
static
const
WCHAR
name
[]
=
{
'T'
,
'a'
,
'b'
,
'l'
,
'e'
,
't'
,
0
};
HMODULE
hx11drv
;
TRACE
(
"%p, %x, %p
\n
"
,
hInstDLL
,
fdwReason
,
lpReserved
);
switch
(
fdwReason
)
...
...
@@ -80,16 +81,19 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
case
DLL_PROCESS_ATTACH
:
TRACE
(
"Initialization
\n
"
);
DisableThreadLibraryCalls
(
hInstDLL
);
hx11drv
=
GetModuleHandleA
(
"winex11.drv"
);
if
(
hx11drv
)
TABLET_Register
();
hwndDefault
=
CreateWindowW
(
WC_TABLETCLASSNAME
,
name
,
WS_POPUPWINDOW
,
0
,
0
,
0
,
0
,
0
,
0
,
hInstDLL
,
0
);
if
(
hwndDefault
)
{
pLoadTabletInfo
=
(
void
*
)
GetProcAddress
(
hx11drv
,
"LoadTabletInfo"
);
pAttachEventQueueToTablet
=
(
void
*
)
GetProcAddress
(
hx11drv
,
"AttachEventQueueToTablet"
);
pGetCurrentPacket
=
(
void
*
)
GetProcAddress
(
hx11drv
,
"GetCurrentPacket"
);
pWTInfoW
=
(
void
*
)
GetProcAddress
(
hx11drv
,
"WTInfoW"
);
TABLET_Register
();
hwndDefault
=
CreateWindowW
(
WC_TABLETCLASSNAME
,
name
,
WS_POPUPWINDOW
,
0
,
0
,
0
,
0
,
0
,
0
,
hInstDLL
,
0
);
HDC
hdc
=
GetDC
(
hwndDefault
);
HMODULE
module
=
__wine_get_driver_module
(
hdc
);
pLoadTabletInfo
=
(
void
*
)
GetProcAddress
(
module
,
"LoadTabletInfo"
);
pAttachEventQueueToTablet
=
(
void
*
)
GetProcAddress
(
module
,
"AttachEventQueueToTablet"
);
pGetCurrentPacket
=
(
void
*
)
GetProcAddress
(
module
,
"GetCurrentPacket"
);
pWTInfoW
=
(
void
*
)
GetProcAddress
(
module
,
"WTInfoW"
);
ReleaseDC
(
hwndDefault
,
hdc
);
}
else
return
FALSE
;
...
...
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