Changeset 3482bcc in mainline


Ignore:
Timestamp:
2013-09-11T23:38:53Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d23cc0
Parents:
bd0e6a1
Message:

rfb: Fix encoding of pixel values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/rfb/rfb.c

    rbd0e6a1 r3482bcc  
    219219        uint32_t pix = 0;
    220220        pix |= rfb_scale_channel(r, pf->r_max) << pf->r_shift;
    221         pix |= rfb_scale_channel(g, pf->r_max) << pf->g_shift;
    222         pix |= rfb_scale_channel(b, pf->r_max) << pf->b_shift;
     221        pix |= rfb_scale_channel(g, pf->g_max) << pf->g_shift;
     222        pix |= rfb_scale_channel(b, pf->b_max) << pf->b_shift;
    223223       
    224224        if (pf->bpp == 8) {
Note: See TracChangeset for help on using the changeset viewer.