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


Ignore:
Timestamp:
2019-10-29T02:34:14Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3c185b6
Parents:
587b4cb
Message:

A little bit of tiling support

File:
1 edited

Legend:

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

    r587b4cb r22faaf2  
    9090{
    9191        ds_window_t *wnd = (ds_window_t *) arg;
     92        gfx_rect_t drect;
    9293
    9394        log_msg(LOG_DEFAULT, LVL_NOTE, "gc_fill_rect");
    94         return gfx_fill_rect(wnd->display->gc, rect);
     95        gfx_rect_translate(&wnd->dpos, rect, &drect);
     96        return gfx_fill_rect(wnd->display->gc, &drect);
    9597}
    9698
     
    152154{
    153155        ds_window_bitmap_t *cbm = (ds_window_bitmap_t *)bm;
    154 
    155         return gfx_bitmap_render(cbm->bitmap, srect0, offs0);
     156        gfx_coord2_t doffs;
     157
     158        if (offs0 != NULL)
     159                gfx_coord2_add(&cbm->wnd->dpos, offs0, &doffs);
     160        else
     161                doffs = cbm->wnd->dpos;
     162
     163        return gfx_bitmap_render(cbm->bitmap, srect0, &doffs);
    156164}
    157165
Note: See TracChangeset for help on using the changeset viewer.