diff options
author | pixel <pixel> | 2006-02-02 11:01:12 +0000 |
---|---|---|
committer | pixel <pixel> | 2006-02-02 11:01:12 +0000 |
commit | d05884755c37c131b610c6ce1aef2201d99a10f5 (patch) | |
tree | a3f87af1b0d234748b7a65530e3b7718f78ec294 /Dalos/Hexview.cc | |
parent | 6c6c434f6cc79aa3b9f01d8d5d7b2d538ee68942 (diff) |
Fixing old Dalos, and fixing Linux compilation.
Diffstat (limited to 'Dalos/Hexview.cc')
-rw-r--r-- | Dalos/Hexview.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Dalos/Hexview.cc b/Dalos/Hexview.cc index b5f43ae..bc45d9d 100644 --- a/Dalos/Hexview.cc +++ b/Dalos/Hexview.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Hexview.cc,v 1.4 2005-11-05 14:36:11 pixel Exp $ */ +/* $Id: Hexview.cc,v 1.5 2006-02-02 11:01:12 pixel Exp $ */ #include <SDL.h> @@ -86,7 +86,7 @@ hexview::hexview(mogltk::shape * sh, mogltk::widget * father) : nlines = GetH() / 13; CurrentHexview = this; } -hexview::~hexview() { +hexview::~hexview() throw (GeneralException) { free(data); CurrentHexview = 0; } @@ -178,7 +178,7 @@ void hexview::draw() { mogltk::FixedFont->setcolor(WHITE); mogltk::FixedFont->putcursor(GetAX() - shift * 6, GetAY()); - max_o = min(h->GetSize(), offset + nlines * width); + max_o = MIN(h->GetSize(), offset + nlines * width); for (i = start_o = offset, j = 0, l = 0; i < max_o; i++) { if ((j % width) == 0) { @@ -205,4 +205,4 @@ void hexview::resize_notify() { resize(Father()->GetW(), Father()->GetH()); } -hexview * CurrentHexview;
\ No newline at end of file +hexview * CurrentHexview; |