implement file browser dialog
This commit is contained in:
@@ -118,8 +118,14 @@ bool WacomTablet::init(HWND hWnd)
|
||||
if (LoadWintab())
|
||||
{
|
||||
/* check if WinTab available. */
|
||||
if (gpWTInfoA(0, 0, NULL))
|
||||
gpWTInfoA(0, 0, 0);
|
||||
if (UINT ret = gpWTInfoA(WTI_DEFSYSCTX, 0, &glogContext))
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
// this should just avoid errors in debug mode
|
||||
if (ret != sizeof(LOGCONTEXTA))
|
||||
return false;
|
||||
#endif // _DEBUG
|
||||
g_hCtx = TabletInit(hWnd);
|
||||
if (!g_hCtx)
|
||||
{
|
||||
@@ -147,6 +153,7 @@ bool WacomTablet::init(HWND hWnd)
|
||||
|
||||
void WacomTablet::terminate()
|
||||
{
|
||||
gpWTClose(g_hCtx);
|
||||
UnloadWintab();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user