126 |
126 |
127 void SimpleGenerator::UpdateDimensions() { |
127 void SimpleGenerator::UpdateDimensions() { |
128 lettervsize = regularrenderer->GetLetterHeight(); |
128 lettervsize = regularrenderer->GetLetterHeight(); |
129 asciivsize = regularrenderer->GetLetterHeight(true); |
129 asciivsize = regularrenderer->GetLetterHeight(true); |
130 |
130 |
131 int totalh = regularrenderer->GetLineGap(); |
131 int totalh = (int)regularrenderer->GetLineGap(); |
132 |
132 |
133 Spacing = (int)std::round((float)totalh / (2 * Density / 3)); |
133 Spacing = (int)std::round((float)totalh / (2 * Density / 3)); |
134 Focus.Spacing = std::max(1, Spacing / 2); |
134 Focus.Spacing = std::max(1, Spacing / 2); |
135 |
135 |
136 BorderedWidgetHeight = |
136 BorderedWidgetHeight = |
778 {ObjectHeight - ObjectBorder*2.f, ObjectHeight - ObjectBorder*2.f}, |
778 {ObjectHeight - ObjectBorder*2.f, ObjectHeight - ObjectBorder*2.f}, |
779 {ObjectBorder*2.f, ObjectHeight - ObjectBorder*2.f}, |
779 {ObjectBorder*2.f, ObjectHeight - ObjectBorder*2.f}, |
780 }, CGI::SolidFill<>(color)); |
780 }, CGI::SolidFill<>(color)); |
781 } |
781 } |
782 else { |
782 else { |
783 CGI::DrawLines(*icon, tick, 1.2*ShapeBorder, CGI::SolidFill<>(color)); |
783 CGI::DrawLines(*icon, tick, 1.2f*ShapeBorder, CGI::SolidFill<>(color)); |
784 } |
784 } |
785 icon->Prepare(); |
785 icon->Prepare(); |
786 |
786 |
787 return icon; |
787 return icon; |
788 }; |
788 }; |