diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /plugins/TipperYM/src/bitmap_func.cpp | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/TipperYM/src/bitmap_func.cpp')
-rw-r--r-- | plugins/TipperYM/src/bitmap_func.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TipperYM/src/bitmap_func.cpp b/plugins/TipperYM/src/bitmap_func.cpp index d10a95c460..3915087916 100644 --- a/plugins/TipperYM/src/bitmap_func.cpp +++ b/plugins/TipperYM/src/bitmap_func.cpp @@ -429,7 +429,7 @@ COLOR32* SaveAlpha(LPRECT lpRect) return res;
}
-void RestoreAlpha(LPRECT lpRect, COLOR32 *pBits, BYTE alpha)
+void RestoreAlpha(LPRECT lpRect, COLOR32 *pBits, uint8_t alpha)
{
GdiFlush();
@@ -461,14 +461,14 @@ BOOL IsAlphaTransparent(HBITMAP hBitmap) return FALSE;
DWORD dwLen = bmp.bmWidth * bmp.bmHeight * (bmp.bmBitsPixel / 8);
- BYTE *p = (BYTE *)mir_calloc(dwLen);
+ uint8_t *p = (uint8_t *)mir_calloc(dwLen);
if (p == nullptr)
return FALSE;
GetBitmapBits(hBitmap, dwLen, p);
for (int y = 0; y < bmp.bmHeight; y++) {
- BYTE *px = p + bmp.bmWidth * 4 * y;
+ uint8_t *px = p + bmp.bmWidth * 4 * y;
for (int x = 0; x < bmp.bmWidth; x++) {
if (px[3] != 0) {
mir_free(p);
@@ -601,7 +601,7 @@ void ColorizeBitmap() }
// code from Clist Modern by FYR
-HRGN CreateOpaqueRgn(BYTE level, bool bOpaque)
+HRGN CreateOpaqueRgn(uint8_t level, bool bOpaque)
{
if (!skin.colBits)
return nullptr;
|