Changeset 7e38970d in mainline for uspace/srv


Ignore:
Timestamp:
2020-12-07T00:08:37Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f26600
Parents:
7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'jxsvoboda-gfx' into master

Location:
uspace/srv/hid
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    r7a873f0 r7e38970d  
    9090void ds_seat_set_focus(ds_seat_t *seat, ds_window_t *wnd)
    9191{
     92        if (wnd == seat->focus) {
     93                /* Focus is not changing */
     94                return;
     95        }
     96
    9297        if (seat->focus != NULL)
    9398                ds_window_post_unfocus_event(seat->focus);
  • uspace/srv/hid/display/window.c

    r7a873f0 r7e38970d  
    160160        ds_display_remove_window(wnd);
    161161        ds_display_add_window(disp, wnd);
     162        (void) ds_display_paint(wnd->display, NULL);
    162163}
    163164
  • uspace/srv/hid/rfb/main.c

    r7a873f0 r7e38970d  
    196196
    197197        /* Check that we support all required flags */
    198         if ((params->flags & ~bmpf_color_key) != 0)
     198        if ((params->flags & ~(bmpf_color_key | bmpf_colorize)) != 0)
    199199                return ENOTSUP;
    200200
     
    287287
    288288        if ((rfbbm->flags & bmpf_color_key) == 0) {
     289                /* Simple copy */
    289290                for (y = srect.p0.y; y < srect.p1.y; y++) {
    290291                        for (x = srect.p0.x; x < srect.p1.x; x++) {
     
    294295                        }
    295296                }
    296         } else {
     297        } else if ((rfbbm->flags & bmpf_colorize) == 0) {
     298                /* Color key */
    297299                for (y = srect.p0.y; y < srect.p1.y; y++) {
    298300                        for (x = srect.p0.x; x < srect.p1.x; x++) {
     
    304306                        }
    305307                }
     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                }
    306320        }
    307321
Note: See TracChangeset for help on using the changeset viewer.