1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-08 15:19:50 +00:00

Fix some warnings

mostly sign-related, but also some about commas after the last item in
an enum list, usage of default in switches, implicit or old-style casts
This commit is contained in:
Valentin Ochs 2017-01-20 04:51:38 +01:00 committed by fgenesis
parent 21fa854c87
commit 9245bee717
38 changed files with 128 additions and 126 deletions

View file

@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __quad__
#define __quad__
#ifndef QUAD_H
#define QUAD_H
#include "RenderObject.h"
@ -55,8 +55,8 @@ public:
void setWidthHeight(float w, float h=-1);
void setWidth(float w);
void setHeight(float h);
int getWidth() const {return int(width);}
int getHeight() const {return int(height);}
unsigned int getWidth() const {return static_cast<unsigned int>(width);}
unsigned int getHeight() const {return static_cast<unsigned int>(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);