Application Scaling for MSW:

+ Experiments with toolBars scaling
+ Rescaled warning and printing legends
This commit is contained in:
YuSanka 2019-04-16 12:11:48 +02:00
parent ae2c61160f
commit fc63a28481
5 changed files with 50 additions and 8 deletions

View file

@ -353,6 +353,9 @@ private:
void activate(WarningTexture::Warning warning, bool state, const GLCanvas3D& canvas);
void render(const GLCanvas3D& canvas) const;
// function used to get an information for rescaling of the warning
void rescale(const GLCanvas3D& canvas);
private:
static const unsigned char Background_Color[3];
static const unsigned char Opacity;
@ -360,6 +363,10 @@ private:
int m_original_width;
int m_original_height;
// information for rescaling of the warning legend
std::string m_msg_text = "";
bool m_is_colored_red{false};
// Information about which warnings are currently active.
std::vector<Warning> m_warnings;
@ -587,6 +594,8 @@ public:
double get_size_proportional_to_max_bed_size(double factor) const;
void rescale();
private:
bool _is_shown_on_screen() const;