1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-26 02:07:26 +00:00

eliminate one gigantic global float->uint->float roundtrip cast

whyyyy
This commit is contained in:
fgenesis 2022-09-25 06:02:22 +02:00
parent 58e9ba340e
commit cc1530b5e5

View file

@ -55,8 +55,8 @@ public:
void setWidthHeight(float w, float h=-1);
void setWidth(float w);
void setHeight(float h);
unsigned int getWidth() const {return static_cast<unsigned int>(width);}
unsigned int getHeight() const {return static_cast<unsigned int>(height);}
float getWidth() const {return width;}
float getHeight() const {return height;}
void setSegs(int x, int y, float dgox, float dgoy, float dgmx, float dgmy, float dgtm, bool dgo);
void setDrawGridAlpha(size_t x, size_t y, float alpha);