Shop OBEX P1 Docs P2 Docs Learn Events
P1 SPIN GUIDemo from GIT — Parallax Forums

P1 SPIN GUIDemo from GIT

Hello,
I have moved the loggin window in the GUIDemo and found out that frame elements of neighbouring windows were moved as well.

Cause: in Textbox.spin a longmove was used in the PUB Scroll.
I changed this to bytemove

PUB Scroll | vgaIdx, tbRows

  tbRows := varHeight - varTitle - 2
  vgaIdx := ( varRow + varTitle + 1 ) * varVgaCols + varCol
  repeat tbRows - 1
'' longmove( @byte[varScreenPtr][vgaIdx], @byte[varScreenPtr][vgaIdx+varVgaCols], varWidth / 4 )
    bytemove( @byte[varScreenPtr][vgaIdx], @byte[varScreenPtr][vgaIdx+varVgaCols], varWidth )
    vgaIdx += varVgaCols
  bytefill( @byte[varScreenPtr][vgaIdx+1], 32, varWidth - 2 )
  varRowIdx--

If someone wants to change this on the GIT?
Thanks.

Translated with www.DeepL.com/Translator (free version)

Sign In or Register to comment.