]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P12-fbcon-fix_041219.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / openzaurus-pxa27x-2.4.20-rmk2-embedix20050602 / P12-fbcon-fix_041219.patch
1 diff -Nur c3000_pre/linux/drivers/video/fbcon-cfb16.c c3000_work/linux/drivers/video/fbcon-cfb16.c
2 --- c3000_pre/linux/drivers/video/fbcon-cfb16.c 2004-12-16 22:55:38.000000000 +0900
3 +++ c3000_work/linux/drivers/video/fbcon-cfb16.c        2004-12-19 00:11:24.000000000 +0900
4 @@ -219,7 +219,7 @@
5  
6      width *= fontwidth(p)/4;
7  #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L)
8 -    if (width * 8 == bytes)
9 +    if (height * 8 == bytes)
10         rectfill(dest, 1, lines * width * 4, bgx, bytes);
11      else
12         rectfill(dest, lines, width * 4, bgx, bytes);
13 diff -Nur c3000_pre/linux/drivers/video/fbcon.c c3000_work/linux/drivers/video/fbcon.c
14 --- c3000_pre/linux/drivers/video/fbcon.c       2004-12-16 22:55:38.000000000 +0900
15 +++ c3000_work/linux/drivers/video/fbcon.c      2004-12-19 00:28:12.000000000 +0900
16 @@ -247,7 +247,7 @@
17  
18  static void fbcon_setup(int con, int init, int logo);
19  #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L)
20 -static __inline__ int real_x(struct display *p, int ypos);
21 +static __inline__ int real_x(struct display *p, int xpos);
22  #else
23  static __inline__ int real_y(struct display *p, int ypos);
24  #endif
25 @@ -263,7 +263,7 @@
26  static __inline__ void xpan_down(int unit, struct vc_data *conp,
27                                  struct display *p, int count);
28  static void fbcon_bmove_rec(struct display *p, int sx, int sy, int dx, int dy,
29 -                           int height, int width, u_int y_break);
30 +                           int height, int width, u_int x_break);
31  #else
32  static __inline__ void ywrap_up(int unit, struct vc_data *conp,
33                                 struct display *p, int count);
34 @@ -1011,7 +1010,7 @@
35  
36  #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L)
37      if ((sx <= p->cursor_x) && (p->cursor_x < sx+height) &&
38 -       (sx <= p->cursor_y) && (p->cursor_y < sy+width)) {
39 +       (sy <= p->cursor_y) && (p->cursor_y < sy+width)) {
40  #else
41      if ((sy <= p->cursor_y) && (p->cursor_y < sy+height) &&
42         (sx <= p->cursor_x) && (p->cursor_x < sx+width)) {
43 @@ -1235,7 +1234,7 @@
44      if (p->dispsw->cursor) {
45  #if defined(CONFIG_FBCON_ROTATE_R) || defined(CONFIG_FBCON_ROTATE_L)
46         p->cursor_y = conp->vc_y;
47 -       p->cursor_y = x;
48 +       p->cursor_x = x;
49         p->dispsw->cursor(p, mode, p->cursor_y, real_x(p, p->cursor_x));
50  #else
51         p->cursor_x = conp->vc_x;