1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Remove extraneous includes from texture.h.

This commit is contained in:
Lukas Tenbrink
2025-10-10 17:19:55 +02:00
parent 295e465fe4
commit 985e6178b4
33 changed files with 48 additions and 8 deletions

View File

@@ -357,12 +357,12 @@ public:
virtual int screen_get_dpi(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0;
virtual float screen_get_scale(int p_screen = SCREEN_OF_MAIN_WINDOW) const;
virtual float screen_get_max_scale() const {
float scale = 1.f;
float max_scale = 1.f;
int screen_count = get_screen_count();
for (int i = 0; i < screen_count; i++) {
scale = std::fmax(scale, screen_get_scale(i));
max_scale = std::fmax(max_scale, screen_get_scale(i));
}
return scale;
return max_scale;
}
virtual float screen_get_refresh_rate(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0;
virtual Color screen_get_pixel(const Point2i &p_position) const { return Color(); }