Forum >Replies by ferite
userhead ferite
Replies (1)
  • You Reply: Hi Jose.

    After some test I found that this only happens to Java application (running over the Java VM).

    The folks at Robopeak told me, that traditionally, framebuffer stores the data in {R, G, B} sequence. But this driver in particular uses {B, G, R}. Apparently most X11 application can "query" for the correct color order. But Java VM don't. So they suggested me to modify the driver so it manage the order in the traditional RGB way.

    Thus I modified fbhandlers.c, in function "_display_setcolreg" (line 219). I only changed this:

                red= CNVT_TOHW (red, info->var.red.length);
                green = CNVT_TOHW (green, info->var.green.length);
                blue= CNVT_TOHW (blue, info->var.blue.length);

    for this:

                blue = CNVT_TOHW (red, info->var.red.length);
                green = CNVT_TOHW (green, info->var.green.length);
                red = CNVT_TOHW (blue, info->var.blue.length);

    Hoping that this swap were sufficient, but there were not change in the colors in Java apps. So I am hopping to get any suggestion on how do I should modify the driver.

    Thanks.