Ignore:
File:
1 edited

Legend:

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

    r0d62c10 rde19d4a  
    196196
    197197        /* Check that we support all required flags */
    198         if ((params->flags & ~(bmpf_color_key | bmpf_colorize)) != 0)
     198        if ((params->flags & ~bmpf_color_key) != 0)
    199199                return ENOTSUP;
    200200
     
    287287
    288288        if ((rfbbm->flags & bmpf_color_key) == 0) {
    289                 /* Simple copy */
    290289                for (y = srect.p0.y; y < srect.p1.y; y++) {
    291290                        for (x = srect.p0.x; x < srect.p1.x; x++) {
     
    295294                        }
    296295                }
    297         } else if ((rfbbm->flags & bmpf_colorize) == 0) {
    298                 /* Color key */
     296        } else {
    299297                for (y = srect.p0.y; y < srect.p1.y; y++) {
    300298                        for (x = srect.p0.x; x < srect.p1.x; x++) {
     
    306304                        }
    307305                }
    308         } else {
    309                 /* Color key & colorization */
    310                 for (y = srect.p0.y; y < srect.p1.y; y++) {
    311                         for (x = srect.p0.x; x < srect.p1.x; x++) {
    312                                 color = pixelmap_get_pixel(&pbm, x, y);
    313                                 if (color != rfbbm->key_color) {
    314                                         pixelmap_put_pixel(&rfbbm->rfb->rfb.framebuffer,
    315                                             x + offs.x, y + offs.y,
    316                                             rfbbm->rfb->color);
    317                                 }
    318                         }
    319                 }
    320306        }
    321307
Note: See TracChangeset for help on using the changeset viewer.