]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Menu.cpp
Fixed a lot of warnings
[lugaru.git] / Source / Menu.cpp
index 8eb10e4e33091e04bc4acfbd9b9927bf8fb0d750..1484434a35868e7e75b7b65650fc926735c2a3cd 100644 (file)
@@ -1,3 +1,24 @@
+/*
+Copyright (C) 2003, 2010 - Wolfire Games
+
+This file is part of Lugaru.
+
+Lugaru is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+See the GNU General Public License for more details.
+
+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.
+*/
+
 #include <vector>
 #include <string>
 #include "gamegl.h"
@@ -242,15 +263,18 @@ void Menu::drawItems()
             glPushMatrix();
             glTranslatef(2, -5, 0); //from old code
             glBegin(GL_QUADS);
-            glVertex3f(linestart.x - offset.x * it->linestartsize,     linestart.y - offset.y * it->linestartsize,      0.0f);
-            glVertex3f(linestart.x + offset.x * it->linestartsize,     linestart.y + offset.y * it->linestartsize,      0.0f);
-            glVertex3f(lineend.x + offset.x * it->lineendsize,         lineend.y + offset.y * it->lineendsize, 0.0f);
-            glVertex3f(lineend.x - offset.x * it->lineendsize,                 lineend.y - offset.y * it->lineendsize, 0.0f);
+            glVertex3f(linestart.x - offset.x * it->linestartsize, linestart.y - offset.y * it->linestartsize, 0.0f);
+            glVertex3f(linestart.x + offset.x * it->linestartsize, linestart.y + offset.y * it->linestartsize, 0.0f);
+            glVertex3f(lineend.x + offset.x * it->lineendsize, lineend.y + offset.y * it->lineendsize, 0.0f);
+            glVertex3f(lineend.x - offset.x * it->lineendsize, lineend.y - offset.y * it->lineendsize, 0.0f);
             glEnd();
             glPopMatrix();
             glEnable(GL_TEXTURE_2D);
         }
         break;
+        default:
+        case MenuItem::NONE:
+        break;
         }
     }
 }