mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Version 4.14.5: Fix build with GCC.
This commit is contained in:
@@ -981,8 +981,6 @@ Ui::ChatPaintContext HistoryInner::preparePaintContext(
|
||||
const QRect &clip) const {
|
||||
const auto visibleAreaPositionGlobal = mapToGlobal(
|
||||
QPoint(0, _visibleAreaTop));
|
||||
const auto visibleAreaPositionLocal = mapFromGlobal(
|
||||
visibleAreaPositionGlobal);
|
||||
return _controller->preparePaintContext({
|
||||
.theme = _theme.get(),
|
||||
.clip = clip,
|
||||
|
@@ -71,9 +71,6 @@ int gifMaxStatusWidth(DocumentData *document) {
|
||||
|
||||
[[nodiscard]] HistoryView::TtlRoundPaintCallback CreateTtlPaintCallback(
|
||||
Fn<void()> update) {
|
||||
const auto iconSize = Size(std::min(
|
||||
st::historyFileInPause.width(),
|
||||
st::historyFileInPause.height()));
|
||||
const auto centerMargins = Margins(st::historyFileInPause.width() * 3);
|
||||
|
||||
const auto renderer = std::make_shared<QSvgRenderer>(
|
||||
@@ -144,7 +141,6 @@ Gif::Gif(
|
||||
? std::make_unique<MediaSpoiler>()
|
||||
: nullptr)
|
||||
, _downloadSize(Ui::FormatSizeText(_data->size)) {
|
||||
auto hasDefaultDocumentLinks = false;
|
||||
if (_data->isVideoMessage() && _parent->data()->media()->ttlSeconds()) {
|
||||
if (_spoiler) {
|
||||
_drawTtl = CreateTtlPaintCallback([=] { repaint(); });
|
||||
|
@@ -408,7 +408,6 @@ void InlineList::paint(
|
||||
: st->msgServiceBg())->c;
|
||||
}
|
||||
|
||||
const auto radius = geometry.height() / 2.;
|
||||
const auto fill = geometry.marginsAdded({
|
||||
flipped ? bubbleSkip : 0,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user