@@ -1483,7 +1483,7 @@ bool arduinoVNC::_handle_hextile_encoded_message(rfbFramebufferUpdateRectHeader
1483
1483
fb.draw_rect (0 , 0 , tile_w, tile_h, bgColor);
1484
1484
#else
1485
1485
/* fill the background */
1486
- display->draw_rect (rect_xW, rect_yW, tile_w, tile_h, bgColor);
1486
+ display->draw_rect (rect_xW, rect_yW, tile_w, tile_h, Swap16IfLE ( bgColor) );
1487
1487
#endif
1488
1488
1489
1489
if (subrect_encoding & rfbHextileAnySubrects) {
@@ -1510,7 +1510,7 @@ bool arduinoVNC::_handle_hextile_encoded_message(rfbFramebufferUpdateRectHeader
1510
1510
#ifdef VNC_FRAMEBUFFER
1511
1511
fb.draw_rect (bufPC->x , bufPC->y , bufPC->w + 1 , bufPC->h + 1 , bufPC->color );
1512
1512
#else
1513
- display->draw_rect (rect_xW + bufPC->x , rect_yW + bufPC->y , bufPC->w +1 , bufPC->h +1 , bufPC->color );
1513
+ display->draw_rect (rect_xW + bufPC->x , rect_yW + bufPC->y , bufPC->w +1 , bufPC->h +1 , Swap16IfLE ( bufPC->color ) );
1514
1514
#endif
1515
1515
bufPC++;
1516
1516
}
@@ -1526,11 +1526,11 @@ bool arduinoVNC::_handle_hextile_encoded_message(rfbFramebufferUpdateRectHeader
1526
1526
HextileSubrects_t * bufP = (HextileSubrects_t *) buf;
1527
1527
for (uint8_t n = 0 ; n < nr_subr; n++) {
1528
1528
1529
- // DEBUG_VNC_HEXTILE("[_handle_hextile_encoded_message] nr_subr: %d bufP: 0x%08X\n", n, bufP);
1529
+ // DEBUG_VNC_HEXTILE("[_handle_hextile_encoded_message] nr_subr: %d bufP: 0x%08X\n", n, bufP);
1530
1530
#ifdef VNC_FRAMEBUFFER
1531
1531
fb.draw_rect (bufP->x , bufP->y , bufP->w + 1 , bufP->h + 1 , fgColor);
1532
1532
#else
1533
- display->draw_rect (rect_xW + bufP->x , rect_yW + bufP->y , bufP->w +1 , bufP->h +1 , fgColor);
1533
+ display->draw_rect (rect_xW + bufP->x , rect_yW + bufP->y , bufP->w +1 , bufP->h +1 , Swap16IfLE ( fgColor) );
1534
1534
#endif
1535
1535
bufP++;
1536
1536
}
0 commit comments