I'm doing a simple picture viewer using the GUI server. However, I am having an odd problem where sometimes the image loads and sometimes it doesn't. If I advance to the next image then come back to one that didn't load, it will often load then.
I am using this to clear the previous image, then load and draw a new image into the canvas:
Code: Select all
(gs:delete-tag 'I)
(gs:draw-image 'I path 0 0 (psize 1) (psize 0))
(gs:draw-text 'I path 21 25 '(0 0 0))
(gs:draw-text 'I path 20 24 '(1 1 0)))
When the image load fails (?), the text draws following it fail also, so nothing is shown.
Any ideas as to what's going on -- and how I can fix it?
Thanks!