I'm using Ubuntu 9.10 x64. Any ideas?
Code: Select all
Procedure DrawIt(width, height)
If Not IsImage(0)
CreateImage(0, Width, Height, 32)
EndIf
StartDrawing(ImageOutput(0))
DrawText(0, 0, StrD(minValue))
DrawText(0, 20, StrD(maxValue))
DrawText(0, 44, Str(ElapsedMilliseconds()))
StopDrawing()
EndProcedure
#width = 200
#height = 200
DrawIt(#width, #height)
OpenWindow(0, 100, 100, #width, #height, "twizzle")
ImageGadget(0, 0, 0, #width, #height, ImageID(image))
Repeat
DrawIt(#width, #height)
SetGadgetState(0, ImageID(0))
Until WaitWindowEvent(100) = #PB_Event_CloseWindow