Merge pull request #2108 from dastels/master

Capture rotation
This commit is contained in:
Scott Shawcroft 2019-09-03 12:49:50 -07:00 committed by GitHub
commit e4b5257d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ void displayio_display_core_construct(displayio_display_core_t* self,
self->ram_width = ram_width;
self->ram_height = ram_height;
rotation = rotation % 360;
self->rotation = rotation;
self->transform.x = 0;
self->transform.y = 0;
self->transform.scale = 1;