summaryrefslogtreecommitdiff
path: root/Dalos/Hexview.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Dalos/Hexview.cc')
-rw-r--r--Dalos/Hexview.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/Dalos/Hexview.cc b/Dalos/Hexview.cc
index 0519526..109aa3a 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.2 2005-02-24 11:30:04 pixel Exp $ */
+/* $Id: Hexview.cc,v 1.3 2005-06-20 22:43:35 pixel Exp $ */
#include <SDL.h>
@@ -142,6 +142,7 @@ int hexview::get_shift() {
void hexview::bind_handle(Handle * _h) {
h = _h;
+ refresh_data();
}
Uint8 * hexview::get_data() {
@@ -161,6 +162,11 @@ Uint8 * hexview::get_data() {
return data;
}
+void hexview::refresh_data() {
+ size_loaded = 0;
+ get_data();
+}
+
void hexview::draw() {
int i, max_o, j, k, start_o, l, c;