summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c4
-rw-r--r--firmware/target/hosted/sdl/lcd-sdl.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
index d952d3d40d..8620c672e1 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c
@@ -38,7 +38,7 @@
38 38
39#if CONFIG_ORIENTATION == SCREEN_PORTRAIT 39#if CONFIG_ORIENTATION == SCREEN_PORTRAIT
40#define LCD_USE_DMA 40#define LCD_USE_DMA
41#elif defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE 41#elif LCD_STRIDEFORMAT == VERTICAL_STRIDE
42#define LCD_USE_DMA 42#define LCD_USE_DMA
43#endif 43#endif
44 44
@@ -511,7 +511,7 @@ void lcd_update_rect(int x, int y, int width, int height)
511 511
512#else 512#else
513 513
514#if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE 514#if LCD_STRIDEFORMAT == VERTICAL_STRIDE
515 515
516#if defined(LCD_USE_DMA) 516#if defined(LCD_USE_DMA)
517 dma_start_transfer16( (char *)FBADDR(0,0), x, y, LCD_HEIGHT, 517 dma_start_transfer16( (char *)FBADDR(0,0), x, y, LCD_HEIGHT,
diff --git a/firmware/target/hosted/sdl/lcd-sdl.c b/firmware/target/hosted/sdl/lcd-sdl.c
index de19de365a..8cbb6c5651 100644
--- a/firmware/target/hosted/sdl/lcd-sdl.c
+++ b/firmware/target/hosted/sdl/lcd-sdl.c
@@ -31,9 +31,9 @@ void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width,
31 unsigned long (*getpixel)(int, int)) 31 unsigned long (*getpixel)(int, int))
32{ 32{
33 SDL_Rect dest; 33 SDL_Rect dest;
34#if LCD_DEPTH >= 8 && (LCD_PIXELFORMAT == RGB565) \ 34#if LCD_DEPTH >= 8 && (LCD_PIXELFORMAT == RGB565) && \
35 && !defined(LCD_STRIDEFORMAT) && !defined(HAVE_LCD_SPLIT) \ 35 (LCD_STRIDEFORMAT == HORIZONTAL_STRIDE) && \
36 && !defined(HAVE_REMOTE_LCD) 36 !defined(HAVE_LCD_SPLIT) && !defined(HAVE_REMOTE_LCD)
37 SDL_Rect src; 37 SDL_Rect src;
38 (void)max_x; 38 (void)max_x;
39 (void)max_y; 39 (void)max_y;