-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Adding Generic Graphic Driver implementation #2588
Conversation
…into develop/adjust-graphics
Also, I didn't see an option for this condition, which if I hadn't needed to hack it with a current display I would not have thought it required
|
that is already existing in the screen class. |
No, I didn't write that comment to waste your time. You may think this is a special case which is ok. |
And this is where the screen properties are used. See all native drivers like this one for example: nf-interpreter/src/nanoFramework.Graphics/Graphics/Displays/ILI9342_320x240_SPI.cpp Line 242 in deacdf3
And see the example of the M5STciC with the SST35S where the screen is smaller than the driver and it starts at x=52 and y=40: /~https://github.com/nanoframework/nanoFramework.M5Stack/blob/5e18fa4b7d95c0510ae201170da0fc4f010f7153/nanoFramework.M5StickCommon/Screen.cs#L63 I've added this feature quite some time ago. So that's the way to go to address your problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT! Sure looks like a nice improvement.
(I have not tested it myself)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The 2nd target name it's a bit extended... 😅 but... 🤷🏻♂️
Description
Motivation and Context
How Has This Been Tested?
On a real device, with real screen.
Screenshots
Types of changes
Checklist