diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-08-22 10:30:30 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-22 10:30:30 +0000 |
commit | a1392aaa1d146d105ebf7a6528b91d5746dc0b89 (patch) | |
tree | 544be87e85beb17b818921c5ee851ca7c0c87863 /packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch | |
parent | a98fc361734009b592044b9b73dfdce3f20caebd (diff) |
add support for the Sharp SL-C3100 (Borzoi)
Diffstat (limited to 'packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch')
-rw-r--r-- | packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch b/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch new file mode 100644 index 0000000000..37ca13e9a5 --- /dev/null +++ b/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch @@ -0,0 +1,51 @@ +diff -Nur c3000_pre/linux/drivers/video/fbcon-cfb16.c c3000_work/linux/drivers/video/fbcon-cfb16.c +--- c3000_pre/linux/drivers/video/fbcon-cfb16.c 2004-12-16 22:55:38.000000000 +0900 ++++ c3000_work/linux/drivers/video/fbcon-cfb16.c 2004-12-19 00:11:24.000000000 +0900 +@@ -219,7 +219,7 @@ + + width *= fontwidth(p)/4; + #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L) +- if (width * 8 == bytes) ++ if (height * 8 == bytes) + rectfill(dest, 1, lines * width * 4, bgx, bytes); + else + rectfill(dest, lines, width * 4, bgx, bytes); +diff -Nur c3000_pre/linux/drivers/video/fbcon.c c3000_work/linux/drivers/video/fbcon.c +--- c3000_pre/linux/drivers/video/fbcon.c 2004-12-16 22:55:38.000000000 +0900 ++++ c3000_work/linux/drivers/video/fbcon.c 2004-12-19 00:28:12.000000000 +0900 +@@ -247,7 +247,7 @@ + + static void fbcon_setup(int con, int init, int logo); + #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L) +-static __inline__ int real_x(struct display *p, int ypos); ++static __inline__ int real_x(struct display *p, int xpos); + #else + static __inline__ int real_y(struct display *p, int ypos); + #endif +@@ -263,7 +263,7 @@ + static __inline__ void xpan_down(int unit, struct vc_data *conp, + struct display *p, int count); + static void fbcon_bmove_rec(struct display *p, int sx, int sy, int dx, int dy, +- int height, int width, u_int y_break); ++ int height, int width, u_int x_break); + #else + static __inline__ void ywrap_up(int unit, struct vc_data *conp, + struct display *p, int count); +@@ -1011,7 +1010,7 @@ + + #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L) + if ((sx <= p->cursor_x) && (p->cursor_x < sx+height) && +- (sx <= p->cursor_y) && (p->cursor_y < sy+width)) { ++ (sy <= p->cursor_y) && (p->cursor_y < sy+width)) { + #else + if ((sy <= p->cursor_y) && (p->cursor_y < sy+height) && + (sx <= p->cursor_x) && (p->cursor_x < sx+width)) { +@@ -1235,7 +1234,7 @@ + if (p->dispsw->cursor) { + #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L) + p->cursor_y = conp->vc_y; +- p->cursor_y = x; ++ p->cursor_x = x; + p->dispsw->cursor(p, mode, p->cursor_y, real_x(p, p->cursor_x)); + #else + p->cursor_x = conp->vc_x; |