You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I have written this correctly, but rightScroll is not called.
BITMAP ENABLE(160,200,16)
BORDER OLIVE GREEN
CLS BLACK
DEFINE KEYBOARD ASYNC
ON SCROLL RIGHT COLUMN CALL rightScroll
PRINT "hello"
HSCROLL SCREEN RIGHT
END
rightScroll:
PRINT "rightScroll"
RETURN
Same thing happens if I use:
ON SCROLL RIGHT COLUMN GOSUB rightScroll
The text was updated successfully, but these errors were encountered:
Hi @poppichicken , and thank you for your bug report!
At first I thought it was a bug but, in fact, looking closely, it is not. In the sense that the ON...SCROLL instruction works with hardware scrolling (to be clear: what can be done pixel by pixel with some chipsets), but not with software scrolling (which is what can be done character by character). The reason is simple: it is a callback that is used to allow the program to fill the space not yet shown, before proceeding with the actual video shifting. Hardware scrolling is not implemented on the cpc target. So it is necessary to implement that type of operation first.
Thank you!
spotlessmind1975
changed the title
ON SCROLL ... CALL (CPC)
Add support to hardware scrolling under cpc
Dec 10, 2024
hi Marco.
I'm not sure if I have written this correctly, but rightScroll is not called.
Same thing happens if I use:
The text was updated successfully, but these errors were encountered: