some refactoring
hopefully improved rendering speed added support to add .obj obstacles
This commit is contained in:
@@ -37,6 +37,11 @@ public:
|
||||
/** repaint me */
|
||||
void paint(Painter& p) override {
|
||||
|
||||
// invisible? -> leave
|
||||
if (!p.isVisible(gtp->pos.xy())) {
|
||||
return;
|
||||
}
|
||||
|
||||
static const QPixmap& pixmapUnfocused = UIHelper::getPixmapColored("gtp", CFG::UNFOCUS_COLOR, 16);
|
||||
static const QPixmap& pixmapFocused = UIHelper::getPixmapColored("gtp", CFG::FOCUS_COLOR, 16);
|
||||
static const QPixmap& pixmapSel = UIHelper::getPixmapColored("gtp", CFG::SEL_COLOR, 16);
|
||||
|
||||
Reference in New Issue
Block a user