Changeset c79545e in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2020-01-19T10:00:11Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2012fe0
Parents:
946a666
Message:

Paint desktop background with a solid color

File:
1 edited

Legend:

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

    r946a666 rc79545e  
    420420            (int) event->hpos, (int) event->vpos);
    421421
     422        gfx_rect_translate(&wnd->dpos, &wnd->rect, &drect);
     423
     424        gc = ds_display_get_gc(wnd->display); // XXX
     425        if (gc != NULL) {
     426                gfx_set_color(gc, wnd->display->bg_color);
     427                gfx_fill_rect(gc, &drect);
     428        }
     429
    422430        assert(wnd->state == dsw_moving);
    423431        pos.x = event->hpos;
     
    428436        gfx_rect_translate(&nwpos, &wnd->rect, &drect);
    429437
     438        wnd->orig_pos = pos;
     439        wnd->dpos = nwpos;
     440
    430441        rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, &color);
    431442        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.