mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Show SDL version in the About tab (#16046)
This commit is contained in:
@@ -109,6 +109,14 @@ public:
|
||||
return EIDT_SDL;
|
||||
}
|
||||
|
||||
//! Get the SDL version
|
||||
std::string getVersionString() const override
|
||||
{
|
||||
SDL_version ver;
|
||||
SDL_GetVersion(&ver);
|
||||
return std::to_string(ver.major) + "." + std::to_string(ver.minor) + "." + std::to_string(ver.patch);
|
||||
}
|
||||
|
||||
//! Get the display density in dots per inch.
|
||||
float getDisplayDensity() const override;
|
||||
|
||||
|
Reference in New Issue
Block a user