UI: Properly size microprofile, make dpi transparent to unaware users.

This commit is contained in:
Dr. Chat
2017-08-03 22:34:12 -05:00
parent 707f4c96ba
commit 5430dd0cd0
5 changed files with 20 additions and 9 deletions

View File

@@ -76,6 +76,9 @@ class Window {
int32_t width() const { return width_; }
int32_t height() const { return height_; }
int32_t scaled_width() const { return int32_t(width_ * get_dpi_scale()); }
int32_t scaled_height() const { return int32_t(height_ * get_dpi_scale()); }
virtual void Resize(int32_t width, int32_t height) {
width_ = width;
height_ = height;