Skip to content

fix bitmap plot screen location#148

Open
stevesims wants to merge 2 commits intobreakintoprogram:mainfrom
stevesims:upstream-fix-bitmap-plot
Open

fix bitmap plot screen location#148
stevesims wants to merge 2 commits intobreakintoprogram:mainfrom
stevesims:upstream-fix-bitmap-plot

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