summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /plugins/ChangeKeyboardLayout
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'plugins/ChangeKeyboardLayout')
-rw-r--r--plugins/ChangeKeyboardLayout/src/stdafx.h12
-rw-r--r--plugins/ChangeKeyboardLayout/src/text_operations.cpp6
-rw-r--r--plugins/ChangeKeyboardLayout/src/text_operations.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/stdafx.h b/plugins/ChangeKeyboardLayout/src/stdafx.h
index d76e96c72f..8d89dee754 100644
--- a/plugins/ChangeKeyboardLayout/src/stdafx.h
+++ b/plugins/ChangeKeyboardLayout/src/stdafx.h
@@ -82,18 +82,18 @@ typedef struct
BOOL ChangeSystemLayout;
BOOL CopyToClipboard;
BOOL ShowPopup;
- BYTE bCaseOperations;
+ uint8_t bCaseOperations;
} MainOptions;
typedef struct
{
- BYTE bColourType;
+ uint8_t bColourType;
COLORREF crTextColour;
COLORREF crBackColour;
- BYTE bTimeoutType;
- BYTE bTimeout;
- BYTE bLeftClick;
- BYTE bRightClick;
+ uint8_t bTimeoutType;
+ uint8_t bTimeout;
+ uint8_t bLeftClick;
+ uint8_t bRightClick;
POPUPACTION paActions[1];
} PopupOptions;
diff --git a/plugins/ChangeKeyboardLayout/src/text_operations.cpp b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
index 06e7a8f3ea..37fbd00c1f 100644
--- a/plugins/ChangeKeyboardLayout/src/text_operations.cpp
+++ b/plugins/ChangeKeyboardLayout/src/text_operations.cpp
@@ -101,7 +101,7 @@ wchar_t* GenerateLayoutString(HKL hklLayout)
SHORT shVirtualKey = VkKeyScanExW(ptszKeybEng[i], g_plugin.hklEng);
UINT iScanCode = MapVirtualKeyExW(shVirtualKey & 0x00FF, 0, g_plugin.hklEng);
- BYTE bState[256] = {};
+ uint8_t bState[256] = {};
if (shVirtualKey & 0x0100) bState[VK_SHIFT] = 0x80;
if (shVirtualKey & 0x0200) bState[VK_CONTROL] = 0x80;
@@ -213,7 +213,7 @@ HKL GetLayoutOfText(LPCTSTR ptszInText)
return hklCurLay;
}
-int ChangeLayout(HWND hTextWnd, BYTE TextOperation, BOOL CurrentWord)
+int ChangeLayout(HWND hTextWnd, uint8_t TextOperation, BOOL CurrentWord)
{
HKL hklCurLay = nullptr, hklToLay = nullptr;
@@ -221,7 +221,7 @@ int ChangeLayout(HWND hTextWnd, BYTE TextOperation, BOOL CurrentWord)
CHARRANGE crSelection = { 0 }, crTemp = { 0 };
DWORD dwStartWord, dwEndWord;
- BYTE WindowType = WTYPE_Unknown;
+ uint8_t WindowType = WTYPE_Unknown;
BOOL WindowIsReadOnly, TwoWay;
if (hTextWnd == nullptr)
diff --git a/plugins/ChangeKeyboardLayout/src/text_operations.h b/plugins/ChangeKeyboardLayout/src/text_operations.h
index c06c266992..786d811c2d 100644
--- a/plugins/ChangeKeyboardLayout/src/text_operations.h
+++ b/plugins/ChangeKeyboardLayout/src/text_operations.h
@@ -11,6 +11,6 @@ wchar_t *GetLayoutString(HKL hklLayout);
HKL GetLayoutOfText(LPCTSTR ptzsInText);
wchar_t *ChangeTextCase(LPCTSTR ptszInText);
wchar_t *ChangeTextLayout(LPCTSTR ptzsInText, HKL hklCurLay, HKL hklToLay, BOOL TwoWay);
-int ChangeLayout(HWND hTextWnd, BYTE bTextOperation, BOOL CurrentWord);
+int ChangeLayout(HWND hTextWnd, uint8_t bTextOperation, BOOL CurrentWord);
#endif \ No newline at end of file