Skip to content

Commit

Permalink
Decrease complement count
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancorvussolis committed Nov 6, 2016
1 parent 177b57d commit 3439be1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion imcrvmgr/SearchUserDictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "configxml.h"
#include "imcrvmgr.h"

#define MAX_COMPLEMENT_RESULT 1024
#define MAX_COMPLEMENT_RESULT 256

//ユーザー辞書
SKKDIC userdic;
Expand Down
23 changes: 8 additions & 15 deletions imcrvtip/FunctionProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ HRESULT CTextService::GetFunction(REFGUID rguid, REFIID riid, IUnknown **ppunk)
{
*ppunk = (ITfFnGetPreferredTouchKeyboardLayout *)this;
}
else
{
return E_INVALIDARG;
}

if(*ppunk)
{
Expand Down Expand Up @@ -103,36 +99,33 @@ HRESULT CTextService::GetDisplayName(BSTR *pbstrName)

HRESULT CTextService::Show(HWND hwndParent, LANGID langid, REFGUID rguidProfile)
{
if(IsEqualGUID(rguidProfile, c_guidProfile))
{
_StartConfigure();
}
else
if(!IsEqualGUID(rguidProfile, c_guidProfile))
{
return E_INVALIDARG;
}

_StartConfigure();

return S_OK;
}

HRESULT CTextService::Show(HWND hwndParent)
{
_StartConfigure();

return S_OK;
}

HRESULT CTextService::GetLayout(TKBLayoutType *pTKBLayoutType, WORD *pwPreferredLayoutId)
{
if(pTKBLayoutType != nullptr && pwPreferredLayoutId != nullptr)
{
*pTKBLayoutType = TKBLT_OPTIMIZED;
*pwPreferredLayoutId = TKBL_OPT_JAPANESE_ABC;
}
else
if(pTKBLayoutType == nullptr || pwPreferredLayoutId == nullptr)
{
return E_INVALIDARG;
}

*pTKBLayoutType = TKBLT_OPTIMIZED;
*pwPreferredLayoutId = TKBL_OPT_JAPANESE_ABC;

return S_OK;
}

Expand Down

0 comments on commit 3439be1

Please sign in to comment.