Skip to content

Orientation of a matrix #236

Answered by RFLTools
RFLTools asked this question in Q&A
Mar 9, 2023 · 7 comments · 1 reply
Discussion options

You must be logged in to vote

You read correctly but unfortunately the Spectrum doesn't use he Matrix libraries. As such I did find a solution by adding:
x = _width - x - 1; y = _height - y - 1;
to the start of
inline virtual uint16_t xy(uint16_t x, uint16_t y) const
Which would essentially accomplish the same as rotating 180 degrees.

Oh - and thanks for the prompt reply!

Edit: Just to be clear if anyone is trying to resolve the same issue, the changes were made to gfxbase.h

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rbergen
Comment options

Answer selected by RFLTools
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants