1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-21 18:11:11 +00:00

SDL2: Support highdpi (#14703)

and handle DPI changes at runtime
This commit is contained in:
grorp 2024-06-16 17:49:42 +02:00 committed by GitHub
parent 7a64527db5
commit a9cca5e76c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 84 additions and 47 deletions

View file

@ -205,6 +205,9 @@ enum EAPPLICATION_EVENT_TYPE
//! The application received a memory warning.
EAET_MEMORY_WARNING,
//! The display density changed (only works on SDL).
EAET_DPI_CHANGED,
//! No real event, but to get number of event types.
EAET_COUNT
};