2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update story mention layout, add outline.

Also use uint32 for bool-bitfields, otherwise:

int a : 1 = 0;
...
const auto test = true;
const auto b = test ? 1 : 0;
if (a != b) {
    a = b;
    ...
}
Assert(a == b); // Violation, because a == -1, not 1 (after a = b).
This commit is contained in:
John Preston
2023-07-05 11:55:16 +04:00
parent d7d8847c1d
commit a0ffa15885
15 changed files with 151 additions and 52 deletions

View File

@@ -170,10 +170,10 @@ private:
QImage frame;
QImage cacheTTL;
int frameIndex = -1;
int paletteVersion : 24 = 0;
int storiesShown : 1 = 0;
int storiesUnread : 1 = 0;
int active : 1 = 0;
uint32 paletteVersion : 24 = 0;
uint32 storiesShown : 1 = 0;
uint32 storiesUnread : 1 = 0;
uint32 active : 1 = 0;
};
void setCornerBadgeShown(
@@ -192,9 +192,9 @@ private:
mutable std::unique_ptr<CornerBadgeUserpic> _cornerBadgeUserpic;
int _top = 0;
int _height = 0;
int _index : 30 = 0;
int _cornerBadgeShown : 1 = 0;
int _topicJumpRipple : 1 = 0;
uint32 _index : 30 = 0;
uint32 _cornerBadgeShown : 1 = 0;
uint32 _topicJumpRipple : 1 = 0;
};