mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Remove extraneous includes from texture.h.
This commit is contained in:
parent
295e465fe4
commit
985e6178b4
33 changed files with 48 additions and 8 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue