summaryrefslogtreecommitdiff
path: root/dalos.lua
diff options
context:
space:
mode:
authorunknown <Pixel@.(none)>2009-12-17 19:48:45 -0800
committerunknown <Pixel@.(none)>2009-12-17 19:48:45 -0800
commit45f3cba3b420ebc1b3ba793f3a609d8c5447a5ce (patch)
treea77fb28d331d6534074e2e6905b1cbe419d23926 /dalos.lua
parent970cdc59b8e5d18f15bf5fb96d768ccb447248d1 (diff)
Fixing the hexviewer's crash, and helping its dynamic refresh a bit.
Diffstat (limited to 'dalos.lua')
-rw-r--r--dalos.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/dalos.lua b/dalos.lua
index fbaf76a..3400aaa 100644
--- a/dalos.lua
+++ b/dalos.lua
@@ -547,6 +547,7 @@ dalosp.object = {
set_houtput = dalosp.object.set_houtput,
houtputs = {},
get_linked_input = dalosp.object.get_linked_input,
+ dcanvas = dcanvas,
}
if tab.otype and not tab.c then
@@ -595,11 +596,13 @@ dalosp.hexview = {
if not h then
self.color = cd.YELLOW
hv:updatehandle(nil)
+ self.dcanvas:draw()
return
end
if not h:canread() or not h:canseek() then
self.color = cd.RED
hv:updatehandle(nil)
+ self.dcanvas:draw()
return
end
self.color = cd.GREEN
@@ -608,6 +611,7 @@ dalosp.hexview = {
self.oldcursors[i] = -1
end
hv:updatehandle(h)
+ self.dcanvas:draw()
end,
configure = function (self)
@@ -660,7 +664,7 @@ dalosp.hexview = {
self.got_eof = false
- local r = self.lh:read(count, userdata)
+ local r = self.h:read(count, userdata)
self.offset = self.offset + r
if r == 0 then self.got_eof = true end
return r