2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

youtube and instagram preview display added (instead of messages with only one such link)

This commit is contained in:
John Preston
2014-11-12 23:18:00 +03:00
parent e0ef1d434d
commit a75f57beb8
25 changed files with 874 additions and 126 deletions

View File

@@ -472,13 +472,8 @@ void MediaView::showPhoto(PhotoData *photo) {
_full = -1;
_current = QPixmap();
_down = OverNone;
_w = photo->full->width();
_h = photo->full->height();
switch (cScale()) {
case dbisOneAndQuarter: _w = qRound(float64(_w) * 1.25 - 0.01); _h = qRound(float64(_h) * 1.25 - 0.01); break;
case dbisOneAndHalf: _w = qRound(float64(_w) * 1.5 - 0.01); _h = qRound(float64(_h) * 1.5 - 0.01); break;
case dbisTwo: _w *= 2; _h *= 2; break;
}
_w = convertScale(photo->full->width());
_h = convertScale(photo->full->height());
if (isHidden()) {
moveToScreen();
}