diff options
author | Dave Chapman <dave@dchapman.com> | 2008-01-07 20:34:11 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-01-07 20:34:11 +0000 |
commit | 945c8a221ade41c462a93f8452320a806e5645b3 (patch) | |
tree | 2a17823e286e6252e60c44c7f4753d5c18ef5172 /firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | |
parent | 2a8f39820b49f116820356c2ca224f82f2106c21 (diff) | |
download | rockbox-945c8a221ade41c462a93f8452320a806e5645b3.tar.gz rockbox-945c8a221ade41c462a93f8452320a806e5645b3.zip |
Add viewport capabilities to all the LCD drivers, and adapt scrolling code. This is the firmware/ part of FS#8385 - the changes to the WPS code still need more work and will be committed at a later date. NOTE: There are no user-visible changes with this commit - just the infrastructure.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16018 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c index 91b2eae986..9b066d61d0 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c | |||
@@ -11,10 +11,9 @@ static volatile bool lcd_on = true; | |||
11 | volatile bool lcd_poweroff = false; | 11 | volatile bool lcd_poweroff = false; |
12 | static unsigned lcd_yuv_options = 0; | 12 | static unsigned lcd_yuv_options = 0; |
13 | /* | 13 | /* |
14 | ** These are imported from lcd-16bit.c | 14 | ** This is imported from lcd-16bit.c |
15 | */ | 15 | */ |
16 | extern unsigned fg_pattern; | 16 | extern struct viewport* current_vp; |
17 | extern unsigned bg_pattern; | ||
18 | 17 | ||
19 | /* Copies a rectangle from one framebuffer to another. Can be used in | 18 | /* Copies a rectangle from one framebuffer to another. Can be used in |
20 | single transfer mode with width = num pixels, and height = 1 which | 19 | single transfer mode with width = num pixels, and height = 1 which |
@@ -245,7 +244,7 @@ void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, | |||
245 | [dstp]"r"(LCD_WIDTH - width), | 244 | [dstp]"r"(LCD_WIDTH - width), |
246 | [transcolor]"r"(TRANSPARENT_COLOR), | 245 | [transcolor]"r"(TRANSPARENT_COLOR), |
247 | [fgcolor]"r"(REPLACEWITHFG_COLOR), | 246 | [fgcolor]"r"(REPLACEWITHFG_COLOR), |
248 | [fgpat]"r"(fg_pattern) | 247 | [fgpat]"r"(current_vp->fg_pattern) |
249 | ); | 248 | ); |
250 | } | 249 | } |
251 | 250 | ||