summaryrefslogtreecommitdiff
path: root/shared-module/framebufferio/FramebufferDisplay.c
diff options
context:
space:
mode:
authorroot <siehputz@gmail.com>2020-09-09 09:34:55 -0500
committerroot <siehputz@gmail.com>2020-09-09 09:34:55 -0500
commit61e1c906bfb8846b57e28d7703a21e74ed3d3f88 (patch)
tree08b504171a5262f1da56214914d42091de5119cb /shared-module/framebufferio/FramebufferDisplay.c
parent24a18c63f9d3990661cc58888896faba9c8fad50 (diff)
parent918a4733b4159c5d483e46fe387b3b28f43f70eb (diff)
Merge branch 'issue3266' of https://github.com/DavePutz/circuitpython into issue3266
Diffstat (limited to 'shared-module/framebufferio/FramebufferDisplay.c')
-rw-r--r--shared-module/framebufferio/FramebufferDisplay.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared-module/framebufferio/FramebufferDisplay.c b/shared-module/framebufferio/FramebufferDisplay.c
index 6b5346877..5163c3a7b 100644
--- a/shared-module/framebufferio/FramebufferDisplay.c
+++ b/shared-module/framebufferio/FramebufferDisplay.c
@@ -66,7 +66,7 @@ void common_hal_framebufferio_framebufferdisplay_construct(framebufferio_framebu
ram_height,
0,
0,
- rotation,
+ 0, // rotation
depth,
fb_getter_default(get_grayscale, (depth < 8)),
fb_getter_default(get_pixels_in_byte_share_row, false),
@@ -92,6 +92,10 @@ void common_hal_framebufferio_framebufferdisplay_construct(framebufferio_framebu
self->native_frames_per_second = fb_getter_default(get_native_frames_per_second, 60);
self->native_ms_per_frame = 1000 / self->native_frames_per_second;
+ if (rotation != 0) {
+ common_hal_framebufferio_framebufferdisplay_set_rotation(self, rotation);
+ }
+
supervisor_start_terminal(self->core.width, self->core.height);
// Set the group after initialization otherwise we may send pixels while we delay in