[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src event.h,1.29,1.30 win_scroll.cc,1
From: |
Kai Sterker <address@hidden> |
Subject: |
[Adonthell-commits] CVS: adonthell/src event.h,1.29,1.30 win_scroll.cc,1.4,1.5 |
Date: |
Mon, 02 Dec 2002 09:31:58 -0500 |
Update of /cvsroot/adonthell/adonthell/src
In directory subversions:/tmp/cvs-serv24536
Modified Files:
event.h win_scroll.cc
Log Message:
FIXED [ #101454 ] Floating point exception on Alpha, which was actually a
Division by Zero. (Well, at least I hope it's finally fixed!)
Index: event.h
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/event.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** event.h 20 Aug 2002 17:40:40 -0000 1.29
--- event.h 2 Dec 2002 14:31:55 -0000 1.30
***************
*** 24,28 ****
#define EVENT_H__
- #include "fileops.h"
#include "callback.h"
#include "py_object.h"
--- 24,27 ----
Index: win_scroll.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/win_scroll.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** win_scroll.cc 22 Aug 2001 15:20:37 -0000 1.4
--- win_scroll.cc 2 Dec 2002 14:31:55 -0000 1.5
***************
*** 1,3 ****
--- 1,5 ----
/*
+ $Id$
+
(C) Copyright 2000 Joel Vennin
Part of the Adonthell Project http://adonthell.linuxgames.com
***************
*** 77,82 ****
void win_scroll::set_pos (const u_int8 pos)
{
! cur_amplitude_ = (u_int16)((((float) max_amplitude_) / 255) * pos);
! update_amplitude();
}
--- 79,84 ----
void win_scroll::set_pos (const u_int8 pos)
{
! cur_amplitude_ = (max_amplitude_ * pos) / 255;
! if (max_amplitude_ != 0) update_amplitude ();
}
***************
*** 89,93 ****
}
! cursor_y_=(u_int16) ( (float) ((float)(height() -
win_scrollbar::height_bar() ) / max_amplitude_ ) * cur_amplitude_ );
}
--- 91,95 ----
}
! cursor_y_= ((height() - win_scrollbar::height_bar()) * cur_amplitude_) /
max_amplitude_;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-commits] CVS: adonthell/src event.h,1.29,1.30 win_scroll.cc,1.4,1.5,
Kai Sterker <address@hidden> <=