Using a slightly modified test-grid window as an example:
The last pixel in each line sticks out beyond the rectangle I drew. But (0,0,0,0) is supposed to mean the whole window area, no? If I use (0,0,201,251) it gets those last pixels, but that's counterintuitive, because the window is supposedly only 200x250.
[EDIT] Using (0,0,1,1) produces nothing. (0,0,2,2) produces a single pixel.
[EDIT] This issue also affects the rounded-rectangle mode of WindowCircleOp, with Extra1 and Extra2 set to 0 (i.e. no rounding). I'm unsure if it affects the other modes, but it's probable...
-- make the visible window
local win = "win"
WindowCreate(win, 0, 0, 200, 250, 12, 0, 0)
WindowCircleOp(win, 2,
0, 0, 0, 0,
0, 5, 0, -- no pen
ColourNameToRGB("saddlebrown"), 0,
0, 0, 0, 0)
-- draw a grid
for i = 1, math.max(WindowInfo(win, 3), WindowInfo(win, 4)) / 25 do
WindowLine(win, i * 25, 0, i * 25, WindowInfo(win, 4), 0xC0C0C0, 0, 1)
WindowLine(win, 0, i * 25, WindowInfo(win, 3), i * 25, 0xC0C0C0, 0, 1)
end -- for
WindowShow(win, true)The last pixel in each line sticks out beyond the rectangle I drew. But (0,0,0,0) is supposed to mean the whole window area, no? If I use (0,0,201,251) it gets those last pixels, but that's counterintuitive, because the window is supposedly only 200x250.
[EDIT] Using (0,0,1,1) produces nothing. (0,0,2,2) produces a single pixel.
[EDIT] This issue also affects the rounded-rectangle mode of WindowCircleOp, with Extra1 and Extra2 set to 0 (i.e. no rounding). I'm unsure if it affects the other modes, but it's probable...











