Bitte ändert euer Passwort!

Im März 2026 wurde das Forum gehackt. Dabei hatten die Angreifer Zugriff auf die Datenbank und somit Zugriff auf eure Passwörter. Auch wenn das Forum kein Passwort im Klartext speichert, können die Angreifer eure Passwörter knacken. Bitte ändert daher dringend euer Passwort für das Forum. Solltet ihr das gleiche Passwort auch an anderer Stelle verwenden, ändert es bitte unbedingt an allen Stellen!

DC24 II emulator display LUA bug vs DC24

  • borisff
  • Autor
  • Offline
  • Senior Mitglied
  • Senior Mitglied
  • Beiträge: 65
  • Thanks: 3

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.
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}

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Günter07
  • Neues Mitglied
  • Neues Mitglied
  • Thanks: 0

Re: 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.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • borisff
  • Autor
  • Offline
  • Senior Mitglied
  • Senior Mitglied
  • Beiträge: 65
  • Thanks: 3

Re: DC24 II emulator display LUA bug vs DC24

26 Feb. 2025 08:36
#
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.
Hello,
thanks.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.527 Sekunden
Powered by Kunena Forum