fixed tiny badges
This commit is contained in:
@@ -240,7 +240,7 @@ int Image::getWidth() const
|
||||
|
||||
int Image::getScaledWidth() const
|
||||
{
|
||||
return static_cast<int>(this->getWidth() * this->scale *
|
||||
return static_cast<int>((float)this->getWidth() * this->scale *
|
||||
getApp()->settings->emoteScale.getValue());
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ int Image::getHeight() const
|
||||
|
||||
int Image::getScaledHeight() const
|
||||
{
|
||||
return static_cast<int>(this->getHeight() * this->scale *
|
||||
return static_cast<int>((float)this->getHeight() * this->scale *
|
||||
getApp()->settings->emoteScale.getValue());
|
||||
}
|
||||
|
||||
|
||||
@@ -70,8 +70,8 @@ ImageElement::ImageElement(Image *_image, MessageElement::Flags flags)
|
||||
void ImageElement::addToContainer(MessageLayoutContainer &container, MessageElement::Flags _flags)
|
||||
{
|
||||
if (_flags & this->getFlags()) {
|
||||
QSize size(this->image->getScaledWidth() * this->image->getScale() * container.getScale(),
|
||||
this->image->getScaledHeight() * this->image->getScale() * container.getScale());
|
||||
QSize size(this->image->getScaledWidth() * container.getScale(),
|
||||
this->image->getScaledHeight() * container.getScale());
|
||||
|
||||
container.addElement(
|
||||
(new ImageLayoutElement(*this, this->image, size))->setLink(this->getLink()));
|
||||
|
||||
Reference in New Issue
Block a user