mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Fix build with GCC.
This commit is contained in:
@@ -5020,7 +5020,6 @@ void OverlayWidget::paintCaptionContent(
|
|||||||
}
|
}
|
||||||
if (inner.intersects(clip)) {
|
if (inner.intersects(clip)) {
|
||||||
p.setPen(st::mediaviewCaptionFg);
|
p.setPen(st::mediaviewCaptionFg);
|
||||||
const auto lineHeight = st::mediaviewCaptionStyle.font->height;
|
|
||||||
_caption.draw(p, {
|
_caption.draw(p, {
|
||||||
.position = inner.topLeft(),
|
.position = inner.topLeft(),
|
||||||
.availableWidth = inner.width(),
|
.availableWidth = inner.width(),
|
||||||
|
@@ -23,7 +23,7 @@ SegmentTree::SegmentTree(std::vector<int> array)
|
|||||||
// The max size of this array is about 2 * 2 ^ log2(n) + 1.
|
// The max size of this array is about 2 * 2 ^ log2(n) + 1.
|
||||||
const auto size = 2 * std::pow(
|
const auto size = 2 * std::pow(
|
||||||
2.,
|
2.,
|
||||||
std::floor((std::logf(_array.size()) / std::logf(2.)) + 1));
|
std::floor((std::log(_array.size()) / std::log(2.)) + 1));
|
||||||
_heap.resize(int(size));
|
_heap.resize(int(size));
|
||||||
build(1, 0, _array.size());
|
build(1, 0, _array.size());
|
||||||
}
|
}
|
||||||
|
@@ -864,10 +864,8 @@ void StackLinearChartView::paintSelectedXIndex(
|
|||||||
if ((selectedXIndex < 0) || c.footer) {
|
if ((selectedXIndex < 0) || c.footer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto &[localStart, localEnd] = _transition.zoomedOutXIndices;
|
|
||||||
const auto xPercentageLimits = _transition.zoomedOutXPercentage;
|
const auto xPercentageLimits = _transition.zoomedOutXPercentage;
|
||||||
p.setBrush(st::boxBg);
|
p.setBrush(st::boxBg);
|
||||||
const auto r = st::statisticsDetailsDotRadius;
|
|
||||||
const auto i = selectedXIndex;
|
const auto i = selectedXIndex;
|
||||||
const auto isSameToken = (_selectedPoints.lastXIndex == selectedXIndex)
|
const auto isSameToken = (_selectedPoints.lastXIndex == selectedXIndex)
|
||||||
&& (_selectedPoints.lastHeightLimits.min == c.heightLimits.min)
|
&& (_selectedPoints.lastHeightLimits.min == c.heightLimits.min)
|
||||||
|
Submodule Telegram/lib_ui updated: a38b60636a...7ed87d049f
Reference in New Issue
Block a user