summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src
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/NotesAndReminders/src
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'plugins/NotesAndReminders/src')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp10
-rw-r--r--plugins/NotesAndReminders/src/options.cpp2
-rw-r--r--plugins/NotesAndReminders/src/stdafx.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index c547994008..c267e4c3f7 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -63,8 +63,8 @@ struct STICKYNOTEFONT : public MZeroedObject
{
HFONT hFont;
char size;
- BYTE style; // see the DBFONTF_* flags
- BYTE charset;
+ uint8_t style; // see the DBFONTF_* flags
+ uint8_t charset;
wchar_t szFace[LF_FACESIZE];
};
@@ -1128,7 +1128,7 @@ static STICKYNOTE* NewNoteEx(int Ax, int Ay, int Aw, int Ah, const wchar_t *pwsz
TSN->SNHwnd = CreateWindowEx(L1, NOTE_WND_CLASS, L"StickyNote", L2, Ax, Ay, Aw, Ah, nullptr, nullptr, hmiranda, TSN);
if (g_Transparency < 255)
- SetLayeredWindowAttributes(TSN->SNHwnd, 0, (BYTE)g_Transparency, LWA_ALPHA);
+ SetLayeredWindowAttributes(TSN->SNHwnd, 0, (uint8_t)g_Transparency, LWA_ALPHA);
// ensure that window is not placed off-screen (if previous session had different monitor count or resolution)
// NOTE: SetWindowPlacement should do this, but it's extremly flakey
@@ -1290,8 +1290,8 @@ static void LoadNote(char *Value, bool bIsStartup)
pCustomFont = (STICKYNOTEFONT*)malloc(sizeof(STICKYNOTEFONT));
pCustomFont->size = (char)fsize;
- pCustomFont->style = (BYTE)fstyle;
- pCustomFont->charset = (BYTE)fcharset;
+ pCustomFont->style = (uint8_t)fstyle;
+ pCustomFont->charset = (uint8_t)fcharset;
wcsncpy_s(pCustomFont->szFace, _A2T(TVal2), _TRUNCATE);
pCustomFont->hFont = nullptr;
diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp
index dd198455e2..3142a15eb9 100644
--- a/plugins/NotesAndReminders/src/options.cpp
+++ b/plugins/NotesAndReminders/src/options.cpp
@@ -62,7 +62,7 @@ struct FontOptionsList
wchar_t *szDescr;
COLORREF defColour;
wchar_t *szDefFace;
- BYTE defStyle;
+ uint8_t defStyle;
int defSize;
wchar_t *szBkgName;
}
diff --git a/plugins/NotesAndReminders/src/stdafx.h b/plugins/NotesAndReminders/src/stdafx.h
index f0a8a2bf7f..7c0dde05f2 100644
--- a/plugins/NotesAndReminders/src/stdafx.h
+++ b/plugins/NotesAndReminders/src/stdafx.h
@@ -39,8 +39,8 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
- CMOption<BYTE> bShowNotesAtStart, bShowScrollbar, bShowNoteButtons;
- CMOption<BYTE> bCloseAfterAddReminder, bUseMSI;
+ CMOption<uint8_t> bShowNotesAtStart, bShowScrollbar, bShowNoteButtons;
+ CMOption<uint8_t> bCloseAfterAddReminder, bUseMSI;
int Load() override;
int Unload() override;