Skip to content

fix bitmap plot screen location #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevesims
Copy link
Contributor

the recently added bitmap plot code was always plotting based on the top-left corner of the bitmap. when using OS coordinates this is incorrect behaviour - plot location should be based on the bottom-left corner, as per Acorn GXR

this fixes that behaviour

the bitmap plot code was always plotting based on the top-left corner of the bitmap.  when using OS coordinates this is incorrect behaviour - plot location should be based on the bottom-left corner, as per Acorn GXR

this fixes that behaviour
fixes issue with capturing bitmap to buffer zero
(the `createBuffer` call was preventing creation of buffer with ID 0, as it can’t be used as a place to redirect output)

fixes recently introduced bug with behaviour of VDU 23,27,3 caused by changes to drawBitmap which was compensating for the height of the bitmap when it should only do that for plot calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant