summaryrefslogtreecommitdiff
path: root/lib/widgets.cc
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-15 14:21:30 +0000
committerpixel <pixel>2004-07-15 14:21:30 +0000
commit2d7027363cc50c6532711a2b976c65a3cae0ec4a (patch)
treee328cf5b8f41b7150708bc2212bfad2d1090f32d /lib/widgets.cc
parent55524da6af5a98df4d9c38d8408cd65bd233ee57 (diff)
Updating copyrights and headers
Diffstat (limited to 'lib/widgets.cc')
-rw-r--r--lib/widgets.cc27
1 files changed, 24 insertions, 3 deletions
diff --git a/lib/widgets.cc b/lib/widgets.cc
index f1b558d..c0e09db 100644
--- a/lib/widgets.cc
+++ b/lib/widgets.cc
@@ -1,3 +1,24 @@
+/*
+ * mogltk
+ * Copyright (C) 1999-2004 Nicolas "Pixel" Noble
+ *
+ * This program 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
+ */
+
+/* $Id: widgets.cc,v 1.6 2004-07-15 14:21:31 pixel Exp $ */
+
#include <SDL.h>
#include <vector>
#include <Input.h>
@@ -887,16 +908,16 @@ bool mogltk::widgets::ContextMenu::iin_click() {
mogltk::widgets::Menu::Menu(shape * sh, mogltk::widget * father) : widget(father, 0, 0, 0, 0, 0, "Menu", sh) {
rect r = father->GetDrawRect();
move(r.x, r.y);
- resize(r.w, r.h);
+ resize(r.w, 16);
}
void mogltk::widgets::Menu::resize_notify() {
rect r = Father()->GetDrawRect();
- resize(r.w, r.h);
+ resize(r.w, 16);
}
void mogltk::widgets::Menu::draw(void) {
- Shaper()->box(GetAX(), GetAY(), GetAX2(), GetAY() + 16, BLUE);
+ Shaper()->box(GetAX(), GetAY(), GetAX2(), GetAY2(), BLUE);
}
bool mogltk::widgets::Menu::process_event(int mx, int my, mogltk::event_t event) {