Browse Source

Update draw loop check.

Cody Tolene 2 năm trước cách đây
mục cha
commit
7ca7b6e551

+ 1 - 1
src-fap/views/camera_suite_view_camera.c

@@ -65,7 +65,7 @@ static void camera_suite_view_camera_draw(Canvas* canvas, UartDumpModel* model)
         }
         }
 
 
         for(uint8_t i = 0; i < 8; ++i) {
         for(uint8_t i = 0; i < 8; ++i) {
-            if((model->pixels[p] & (1 << i)) != 0) {
+            if((model->pixels[p] & (1 << (7 - i))) != 0) {
                 // Adjust the coordinates based on the new screen dimensions
                 // Adjust the coordinates based on the new screen dimensions
                 uint16_t screen_x, screen_y;
                 uint16_t screen_x, screen_y;
                 switch(app->orientation) {
                 switch(app->orientation) {