diff --git a/src/main.cpp b/src/main.cpp index 5030ee8..a7abae3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,6 @@ int main() { SetConfigFlags(FLAG_WINDOW_HIGHDPI); InitWindow(screenwidth, screenheight, "raylib"); - DPI = GetWindowScaleDPI(); MyFont vollkorn("assets/fonts/Vollkorn/static/Vollkorn-Regular.ttf", 24); MyFont arabic("assets/fonts/Amiri/Amiri-Regular.ttf", 28); @@ -71,10 +70,11 @@ int main() { gt += dt * k; } - auto [x, y] = GetWindowScaleDPI(); + DPI = GetWindowScaleDPI(); BeginDrawing(); ClearBackground(SKYBLUE); - //DrawText("Hello, Sailor!", 150, 150, 20, RAYWHITE); + + std::println("DPI: ({}, {})", DPI.x, DPI.y); vollkorn.render_text("The night is long and cold outside", {0 ,0}, WHITE);