Skip to content

Commit 0bb3584

Browse files
authored
Merge pull request #115 from jdoubleu/fix-rotated-area-check
Fix area update full screen check
2 parents 0ddffcd + 6d3c8fd commit 0bb3584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/epd_driver/highlevel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum EpdDrawError epd_hl_update_screen(EpdiyHighlevelState* state, enum EpdDrawM
5959

6060
EpdRect _inverse_rotated_area(uint16_t x, uint16_t y, uint16_t w, uint16_t h) {
6161
// If partial update uses full screen do not rotate anything
62-
if (x != 0 && y != 0 && EPD_WIDTH != w && EPD_HEIGHT != h) {
62+
if (!(x == 0 && y == 0 && EPD_WIDTH == w && EPD_HEIGHT == h)) {
6363
// invert the current display rotation
6464
switch (epd_get_rotation())
6565
{

0 commit comments

Comments
 (0)