Skip to content

Commit

Permalink
Merge pull request #115 from jdoubleu/fix-rotated-area-check
Browse files Browse the repository at this point in the history
Fix area update full screen check
  • Loading branch information
vroland committed Oct 4, 2021
2 parents 0ddffcd + 6d3c8fd commit 0bb3584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epd_driver/highlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ enum EpdDrawError epd_hl_update_screen(EpdiyHighlevelState* state, enum EpdDrawM

EpdRect _inverse_rotated_area(uint16_t x, uint16_t y, uint16_t w, uint16_t h) {
// If partial update uses full screen do not rotate anything
if (x != 0 && y != 0 && EPD_WIDTH != w && EPD_HEIGHT != h) {
if (!(x == 0 && y == 0 && EPD_WIDTH == w && EPD_HEIGHT == h)) {
// invert the current display rotation
switch (epd_get_rotation())
{
Expand Down

0 comments on commit 0bb3584

Please sign in to comment.