2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Fixed glitches in draft apply. Fixed overflow / crash in media preview.

Fixed new unread messages with existing unread bar in the shown history.
This commit is contained in:
John Preston
2016-06-10 18:11:44 +03:00
parent 5ffc5dd218
commit b20245c8c8
3 changed files with 24 additions and 5 deletions

View File

@@ -202,7 +202,7 @@ void MediaPreviewWidget::paintEvent(QPaintEvent *e) {
QRect r(e->rect());
const QPixmap &draw(currentImage());
uint32 w = draw.width() / cIntRetinaFactor(), h = draw.height() / cIntRetinaFactor();
int w = draw.width() / cIntRetinaFactor(), h = draw.height() / cIntRetinaFactor();
if (_a_shown.animating()) {
float64 shown = a_shown.current();
p.setOpacity(shown);