use foreground colour to set hardware cursor
author蔡枫 <cf@rock-chips.com>
Tue, 19 Apr 2011 03:39:19 +0000 (11:39 +0800)
committer蔡枫 <cf@rock-chips.com>
Tue, 19 Apr 2011 03:39:19 +0000 (11:39 +0800)
drivers/video/rk29_fb.c

index bcb756e6011ca7ee7644892474a428bb3a8fc8d1..e634ffe29733b388f3f86b9093cae07535f89bea 100755 (executable)
@@ -825,7 +825,7 @@ int rk29_set_cursor_img_transform(char *data)
                        } else {
                                dmsk <<= 1;
                        }
-                       op = (dmsk & 0x80) ? 1 : 3;
+                       op = (dmsk & 0x80) ? 2 : 3;
                        shift = (x*2)%8;
                        offset = x/4;
                        RK29_CURSOR_WRITE_BIT((dst+offset),(3<<shift),(op<<shift));