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