summaryrefslogtreecommitdiff
path: root/Dalos/Hexview.cc
diff options
context:
space:
mode:
authorpixel <pixel>2005-06-20 22:43:35 +0000
committerpixel <pixel>2005-06-20 22:43:35 +0000
commite6f2e66ffb3d436bde9fa3a6fb500090e7a146a8 (patch)
treea207b9084f5e07401f1e0a92fc90ee1f9177c48d /Dalos/Hexview.cc
parentf63b29b1ecde50618e92c069fb04d8e0ae6e63ae (diff)
Minor cosmetic changes.
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;