diff options
Diffstat (limited to 'apps/plugins/xworld/sys.c')
-rw-r--r-- | apps/plugins/xworld/sys.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/xworld/sys.c b/apps/plugins/xworld/sys.c index c57da9456b..a806de5297 100644 --- a/apps/plugins/xworld/sys.c +++ b/apps/plugins/xworld/sys.c | |||
@@ -496,7 +496,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
496 | for (int i = 0; i < w / 2; ++i) { | 496 | for (int i = 0; i < w / 2; ++i) { |
497 | uint8_t pix1 = *(buf + i) >> 4; | 497 | uint8_t pix1 = *(buf + i) >> 4; |
498 | uint8_t pix2 = *(buf + i) & 0xF; | 498 | uint8_t pix2 = *(buf + i) & 0xF; |
499 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 499 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
500 | framebuffer[( (h * 2) ) * 320 + i] = sys->palette[pix1]; | 500 | framebuffer[( (h * 2) ) * 320 + i] = sys->palette[pix1]; |
501 | framebuffer[( (h * 2) + 1) * 320 + i] = sys->palette[pix2]; | 501 | framebuffer[( (h * 2) + 1) * 320 + i] = sys->palette[pix2]; |
502 | #else | 502 | #else |
@@ -515,7 +515,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
515 | for (int i = 0; i < w / 2; ++i) { | 515 | for (int i = 0; i < w / 2; ++i) { |
516 | uint8_t pix1 = *(buf + i) >> 4; | 516 | uint8_t pix1 = *(buf + i) >> 4; |
517 | uint8_t pix2 = *(buf + i) & 0xF; | 517 | uint8_t pix2 = *(buf + i) & 0xF; |
518 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 518 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
519 | framebuffer[(200 - h * 2 ) * 320 + ( 320 - i )] = sys->palette[pix1]; | 519 | framebuffer[(200 - h * 2 ) * 320 + ( 320 - i )] = sys->palette[pix1]; |
520 | framebuffer[(200 - h * 2 - 1) * 320 + ( 320 - i )] = sys->palette[pix2]; | 520 | framebuffer[(200 - h * 2 - 1) * 320 + ( 320 - i )] = sys->palette[pix2]; |
521 | #else | 521 | #else |
@@ -531,7 +531,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
531 | else | 531 | else |
532 | { | 532 | { |
533 | int next = 0; | 533 | int next = 0; |
534 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 534 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
535 | for(int x = 0; x < w / 2; ++x) | 535 | for(int x = 0; x < w / 2; ++x) |
536 | { | 536 | { |
537 | for(int y = 0; y < h; ++y) | 537 | for(int y = 0; y < h; ++y) |
@@ -565,7 +565,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
565 | struct bitmap in_bmp; | 565 | struct bitmap in_bmp; |
566 | if(sys->settings.rotation_option) | 566 | if(sys->settings.rotation_option) |
567 | { | 567 | { |
568 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 568 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
569 | in_bmp.width = 320; | 569 | in_bmp.width = 320; |
570 | in_bmp.height = 200; | 570 | in_bmp.height = 200; |
571 | #else | 571 | #else |
@@ -575,7 +575,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
575 | } | 575 | } |
576 | else | 576 | else |
577 | { | 577 | { |
578 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 578 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
579 | in_bmp.width = 200; | 579 | in_bmp.width = 200; |
580 | in_bmp.height = 320; | 580 | in_bmp.height = 320; |
581 | #else | 581 | #else |
@@ -600,7 +600,7 @@ void sys_copyRect(struct System* sys, uint16_t x, uint16_t y, uint16_t w, uint16 | |||
600 | } | 600 | } |
601 | else | 601 | else |
602 | { | 602 | { |
603 | #if defined(LCD_STRIDEFORMAT) && (LCD_STRIDEFORMAT == VERTICAL_STRIDE) | 603 | #if LCD_STRIDEFORMAT == VERTICAL_STRIDE |
604 | for(int x = 0; x < 320; ++x) | 604 | for(int x = 0; x < 320; ++x) |
605 | { | 605 | { |
606 | for(int y = 0; y < 200; ++y) | 606 | for(int y = 0; y < 200; ++y) |