mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed Xcode build of the new styles.
This commit is contained in:
@@ -156,7 +156,7 @@ void _placeCounter(QImage &img, int size, int count, style::color bg, style::col
|
||||
skip = 2;
|
||||
fontSize = 16;
|
||||
}
|
||||
style::font f(fontSize);
|
||||
style::font f(fontSize, 0, 0);
|
||||
int32 w = f->width(cnt), d, r;
|
||||
if (size == 22) {
|
||||
d = (cntSize < 2) ? 3 : 2;
|
||||
|
@@ -42,7 +42,11 @@ class Sprite {
|
||||
public:
|
||||
Sprite() {
|
||||
}
|
||||
Sprite(int left, int top, int width, int height) : _rect(rtl() ? (spriteWidth() - left - width) : left, top, width, height) {
|
||||
Sprite(int left, int top, int width, int height)
|
||||
: _rect(rtl() ? (spriteWidth() - left * cIntRetinaFactor() - width * cIntRetinaFactor()) : left * cIntRetinaFactor(),
|
||||
top * cIntRetinaFactor(),
|
||||
width * cIntRetinaFactor(),
|
||||
height * cIntRetinaFactor()) {
|
||||
}
|
||||
int pxWidth() const {
|
||||
return _rect.width() / cIntRetinaFactor();
|
||||
|
Reference in New Issue
Block a user