mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Change scaling values around to look good on my setup
Might need some DPI magic to look good on every setup, but I think this is an improvement
This commit is contained in:
parent
90e960f319
commit
c1ec0e49d4
1 changed files with 6 additions and 12 deletions
|
@ -1,7 +1,5 @@
|
|||
#include "ImageSet.hpp"
|
||||
#include "messages/ImageSet.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
@ -60,16 +58,12 @@ const ImagePtr &ImageSet::getImage3() const
|
|||
|
||||
const ImagePtr &ImageSet::getImage(float scale) const
|
||||
{
|
||||
int quality = getSettings()->preferredEmoteQuality;
|
||||
int quality = 1;
|
||||
|
||||
if (!quality) {
|
||||
if (scale > 3.999)
|
||||
quality = 3;
|
||||
else if (scale > 1.999)
|
||||
quality = 2;
|
||||
else
|
||||
scale = 1;
|
||||
}
|
||||
if (scale > 2.999)
|
||||
quality = 3;
|
||||
else if (scale > 1.5)
|
||||
quality = 2;
|
||||
|
||||
if (!this->imageX3_->isEmpty() && quality == 3) {
|
||||
return this->imageX3_;
|
||||
|
|
Loading…
Reference in a new issue