Trying to tile an image.
This works:
This does not:
All I get is a blank white rectangle. Is that Wine screwing with me again?
This works:
if room.textimage ~= nil then
local iwidth = WindowImageInfo(win,room.textimage,2)
local iheight= WindowImageInfo(win,room.textimage,3)
local x = 0
local y = 0
while y < config.WINDOW.height do
x = 0
while x < config.WINDOW.width do
WindowDrawImage (win, room.textimage, x, y, 0, 0, 1) -- straight copy
x = x + iwidth
end
y = y + iheight
end
end
This does not:
WindowImageOp(win, miniwin.image_fill_rectangle, 0,0,0,0, 0x000000, miniwin.pen_null, 1, 0x000000, room.textimage)