use qt round for better cross platform consistency (#4518)

* use qt round for better cross platform consistency

* remove unnecessary casts
This commit is contained in:
ebbit1q 2022-01-08 22:01:15 +01:00 committed by GitHub
parent 4d6c9ede8c
commit 6981cca2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 64 deletions

View file

@ -1,10 +1,5 @@
#include <QGraphicsScene>
#include <QPainter>
#include <QSet>
#include <cmath>
#ifdef _WIN32
#include "round.h"
#endif /* _WIN32 */
#include "tablezone.h"
#include "arrowitem.h"
#include "carddatabase.h"
#include "carddragitem.h"
@ -13,9 +8,12 @@
#include "pb/command_set_card_attr.pb.h"
#include "player.h"
#include "settingscache.h"
#include "tablezone.h"
#include "thememanager.h"
#include <QGraphicsScene>
#include <QPainter>
#include <QSet>
const QColor TableZone::BACKGROUND_COLOR = QColor(100, 100, 100);
const QColor TableZone::FADE_MASK = QColor(0, 0, 0, 80);
const QColor TableZone::GRADIENT_COLOR = QColor(255, 255, 255, 150);