Set dpi scaling to solve display errot when using high dpi displayer

This commit is contained in:
dijunkun
2024-07-01 16:31:39 +08:00
parent 7f25f7426c
commit e63b384d1e
3 changed files with 14 additions and 5 deletions

View File

@@ -124,6 +124,11 @@ class Render {
int menu_window_height_ = 30;
int local_window_width_ = 350;
int main_window_width_real_ = 960;
int main_window_height_real_ = 540;
float dpi_scaling_w_ = 1.0f;
float dpi_scaling_h_ = 1.0f;
int texture_width_ = 1280;
int texture_height_ = 720;