From c3b798273403e6dc80245d43d3ae75be5e48946c Mon Sep 17 00:00:00 2001
From: pixel <pixel>
Date: Thu, 2 Feb 2006 14:09:49 +0000
Subject: Removing a lot of warnings, as well as a bunch of terrible bugs!

---
 lib/texture.cc | 5 ++++-
 lib/widgets.cc | 3 +--
 2 files changed, 5 insertions(+), 3 deletions(-)

(limited to 'lib')

diff --git a/lib/texture.cc b/lib/texture.cc
index b94882a..45e9f3b 100644
--- a/lib/texture.cc
+++ b/lib/texture.cc
@@ -17,7 +17,9 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/* $Id: texture.cc,v 1.12 2006-01-31 17:02:39 pixel Exp $ */
+/* $Id: texture.cc,v 1.13 2006-02-02 14:09:49 pixel Exp $ */
+
+#define DEBUG
 
 #include <sys/types.h>
 #include <SDL.h>
@@ -363,6 +365,7 @@ void mogltk::texture::Taint(void) {
 }
 
 void mogltk::texture::Taintall(void) {
+    active = 0;
     if (header)
         header->recTaint();
 }
diff --git a/lib/widgets.cc b/lib/widgets.cc
index 2cc7295..5d565d6 100644
--- a/lib/widgets.cc
+++ b/lib/widgets.cc
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/* $Id: widgets.cc,v 1.19 2006-02-02 11:01:13 pixel Exp $ */
+/* $Id: widgets.cc,v 1.20 2006-02-02 14:09:49 pixel Exp $ */
 
 #include <SDL.h>
 #include <vector>
@@ -907,7 +907,6 @@ mogltk::rect mogltk::widgets::Frame::GetDrawRect() {
 void mogltk::widget::mainloop() {
     bool end_event_loop = false;
     widget_mouse_event * mouse = new widget_mouse_event(this);
-    widget * w;
     int mx, my;
 
     while (!end_event_loop && !engine::quitrequested()) {
-- 
cgit v1.2.3