DC24 II emulator display LUA bug vs DC24
- borisff
-
Topic Author
- Offline
- Senior Member
-
- Posts: 65
- Thank you received: 3
TPL_KUNENA_MESSAGE_CREATED DC24 II emulator display LUA bug vs DC24
25 Feb 2025 22:00
Hello
here a DC24 II emulator display LUA bug except if someone is able to explain what is wrong
in the attached lua script. It's easy to reproduce. The two images are 128x128 pixels
(created with PIXresizer). Thanks to have a look.
here a DC24 II emulator display LUA bug except if someone is able to explain what is wrong
in the attached lua script. It's easy to reproduce. The two images are 128x128 pixels
(created with PIXresizer). Thanks to have a look.
Code:
local lGname = "Clipping"
local lMaps = ""
local clipW = 256
local clipH = 128
local clipX = 50
local clipY = 15
local png1
local png2
local function printForm(width, height)
if (png1 == nil) then png1 = lcd.loadImage(lMaps .. "/i1.jpg") end
if (png2 == nil) then png2 = lcd.loadImage(lMaps .. "/i2.jpg") end
if (png1 and png2) then
lcd.setClipping(clipX, clipY, clipW, clipH)
lcd.drawImage(95, 6, png1, 220)
lcd.drawImage(-33, 6, png2, 220)
lcd.resetClipping()
end
end
local function init()
local tmp, lEmul = system.getDeviceType()
if (lEmul == 1) then
lMaps = "F:/Imgs"
end
system.registerForm(1, MENU_MAIN, lGname, nil, nil, printForm)
end
collectgarbage()
return {init=init, author="Me", version="1.0", name=lGname}
Please Log in or Create an account to join the conversation.
- Günter07
-
- New Member
-
- Thank you received: 0
TPL_KUNENA_MESSAGE_REPLIED_NEW DC24 II emulator display LUA bug vs DC24
26 Feb 2025 08:32
Hi,
if there is a minus value in the X position in this case -33, this will unfortunately be doubled! Jeti is aware of the error and has fixed it. It will work correctly with the next update.
if there is a minus value in the X position in this case -33, this will unfortunately be doubled! Jeti is aware of the error and has fixed it. It will work correctly with the next update.
Please Log in or Create an account to join the conversation.
- borisff
-
Topic Author
- Offline
- Senior Member
-
- Posts: 65
- Thank you received: 3
TPL_KUNENA_MESSAGE_REPLIED_NEW DC24 II emulator display LUA bug vs DC24
26 Feb 2025 08:36Hello,Günter07 wrote: Hi,
if there is a minus value in the X position in this case -33, this will unfortunately be doubled! Jeti is aware of the error and has fixed it. It will work correctly with the next update.
thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.325 seconds