--[[@title Bleed Test--]]require("drawings")props=require("propcase")xpos = 70ypos = 160box_width = 230box_height = 32fg="white"bg="blue"set_console_layout(1 ,5, 45, 12 )draw.add("rectf", xpos, ypos, xpos+box_width, ypos+box_height, bg, bg)val2=draw.add("string", xpos+76, ypos+12, " -" , fg, bg)i=0repeat draw.replace(val2, "string", xpos+76, ypos+12, "count="..i, fg, bg) draw.overdraw() if (i==20) then print("test") i=0 else i=i+1 end wait_click(100)until not(is_key("no_key"))
Draw code uses global variables so is not really safe.
Quote from: philmoz on 01 / November / 2013, 18:10:29Draw code uses global variables so is not really safe. Something that could be fixed simply with a mutex / lock ?
I'd look at removing the need for global variables first.
Patch file to fix this issue attached. I can see ways to optimize this code for speed at the cost of code size. Doesn't seem worth the effort.
Looks ok. I'm mostly offline for a few more days (and away from build PC).I can add to SVN on Tuesday evening if reyalp can't do it sooner.
Started by flarn2006
Started by msl
Started by Pix
DSLR Hack development
Started by reyalp
« 1 2 »
Started by pigeonhill
« 1 2 »
General Help and Assistance on using CHDK stable releases