Ivan Savenko 1 год назад
Родитель
Сommit
14e3c762c0
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      client/widgets/GraphicalPrimitiveCanvas.cpp
  2. 1 0
      client/widgets/MiscWidgets.cpp

+ 1 - 1
client/widgets/GraphicalPrimitiveCanvas.cpp

@@ -75,7 +75,7 @@ TransparentFilledRectangle::TransparentFilledRectangle(Rect position, ColorRGBA
 {
 	addBox(Point(0,0), Point(-1, -1), color);
 	for (int i = 0; i < width; ++i)
-		addRectangle(Point(i,i), Point(-1-i, -1-i), colorLine);
+		addRectangle(Point(i,i), Point(-1-i*2, -1-i*2), colorLine);
 }
 
 SimpleLine::SimpleLine(Point pos1, Point pos2, ColorRGBA color) :

+ 1 - 0
client/widgets/MiscWidgets.cpp

@@ -699,4 +699,5 @@ void SelectableSlot::setSelectionWidth(int width)
 {
 	OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
 	selection = std::make_shared<TransparentFilledRectangle>( selection->pos - pos.topLeft(), Colors::TRANSPARENCY, Colors::YELLOW, width);
+	selectSlot(selected);
 }