AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
38 stars 13 forks source link

add new “shift origin” command #205

Closed stevesims closed 3 months ago

stevesims commented 3 months ago

which will move the origin point to current graphics coordinates, and moves the currently set viewports by the same delta by which the origin has been moved. shifted viewports are ensured to be on-screen.

setOrigin to graphics coordinates can now move origin to off-screen coordinates. (it was previously restricting the new origin point to be on-screen, which isn’t necessary)

set origin commands now work correctly with relative plot commands

origin in context is now proper screen coordinates, including Y adjustment, instead of just a value scaled to match screen coordinates

bug fix: VDU 26 the “reset viewports” command should have been resetting the graphics origin - it now does that